Jazz 1.25.+
Loading...
Searching...
No Matches
Jazz
server
src
jazz_models
data_space.h
1
/* Jazz (c) 2018-2025 kaalam.ai (The Authors of Jazz), using (under the same license):
2
3
1. Biomodelling - The AATBlockQueue class (c) Jacques BasaldĂșa, 2009-2012 licensed
4
exclusively for the use in the Jazz server software.
5
6
Copyright 2009-2012 Jacques BasaldĂșa
7
8
2. BBVA - Jazz: A lightweight analytical web server for data-driven applications.
9
10
Copyright 2016-2017 Banco Bilbao Vizcaya Argentaria, S.A.
11
12
This product includes software developed at
13
14
BBVA (https://www.bbva.com/)
15
16
3. LMDB, Copyright 2011-2017 Howard Chu, Symas Corp. All rights reserved.
17
18
Licensed under http://www.OpenLDAP.org/license.html
19
20
21
Licensed under the Apache License, Version 2.0 (the "License");
22
you may not use this file except in compliance with the License.
23
You may obtain a copy of the License at
24
25
http://www.apache.org/licenses/LICENSE-2.0
26
27
Unless required by applicable law or agreed to in writing, software
28
distributed under the License is distributed on an "AS IS" BASIS,
29
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30
See the License for the specific language governing permissions and
31
limitations under the License.
32
*/
33
34
35
#include "src/include/jazz_bebop.h"
36
37
#if defined CATCH_TEST
38
#ifndef INCLUDED_JAZZ_CATCH2
39
#define INCLUDED_JAZZ_CATCH2
40
41
#include "src/catch2/catch.hpp"
42
43
#endif
44
#endif
45
46
47
#ifndef INCLUDED_JAZZ_MODELS_DATA_SPACE
48
#define INCLUDED_JAZZ_MODELS_DATA_SPACE
49
50
51
//TODO: Make DataSpaces just an interface with the language and an internal container. A different one for each storage type.
52
53
60
namespace
jazz_models
61
{
62
63
#define DATASPACE_INDEX_ROW_NUM 1
64
#define DATASPACE_INDEX_KEY 2
65
#define DATASPACE_INDEX_EMBEDDING 3
66
67
68
// TODO: Take whatever is still valid from this old version.
69
// /** \brief DataSpaces: The data space.
70
71
// */
72
// class DataSpaces : public Space {
73
74
// public:
75
76
// DataSpaces(pBaseAPI api);
77
78
// virtual StatusCode start();
79
// virtual pChar const id();
80
81
// // Space interface
82
83
// //TODO: This is similar but not quite identical, since it has a FROM predicate
84
85
// // virtual StatusCode load_meta();
86
// // virtual StatusCode save_meta();
87
// // virtual RowNumber num_rows();
88
// // virtual void* get_index_data(RowNumber row);
89
// // virtual int num_cols();
90
// // virtual pName col_name(int col);
91
// // virtual int col_index(pName name);
92
// // virtual pLocator locator(RowNumber row, int col, int &index);
93
// // virtual pRowSelection where(pChar query);
94
// // virtual StatusCode get_row(pTransaction &p_txn, RowNumber row, pColSelection cols = nullptr, pCaster cast = nullptr);
95
96
// // DataSpaces-ETL interface
97
98
// //TODO: Define the DataSpaces-ETL interface. This is understood by the Bop compiler and is used by ETL maintenance software that writes
99
// // special Bop scripts to populate/update/destroy the DataSpaces.
100
101
// private:
102
103
// pBaseAPI p_api; ///< A pointer to the BaseAPI that provides access to containers.
104
// Name storage_ent; ///< The name of the storage entity (Typically an lmdb database with the metadata of all DataSpaces).
105
// };
106
// typedef DataSpaces *pDataSpace; ///< A pointer to a DataSpaces
107
108
}
// namespace jazz_models
109
110
#endif
// ifndef INCLUDED_JAZZ_MODELS_DATA_SPACE
jazz_models
Concepts: A tree of Snippets with support fro blending that populates a semantic space.
Definition
concept.cpp:39