@milaboratories/pl-model-common 1.25.1 → 1.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/author_marker.d.ts +9 -6
- package/dist/base32_encode.cjs +40 -46
- package/dist/base32_encode.cjs.map +1 -1
- package/dist/base32_encode.js +40 -45
- package/dist/base32_encode.js.map +1 -1
- package/dist/base64.cjs +5 -4
- package/dist/base64.cjs.map +1 -1
- package/dist/base64.d.ts +10 -6
- package/dist/base64.js +5 -3
- package/dist/base64.js.map +1 -1
- package/dist/block_state.d.ts +21 -23
- package/dist/bmodel/block_config.cjs +9 -10
- package/dist/bmodel/block_config.cjs.map +1 -1
- package/dist/bmodel/block_config.d.ts +53 -72
- package/dist/bmodel/block_config.js +9 -9
- package/dist/bmodel/block_config.js.map +1 -1
- package/dist/bmodel/code.cjs +7 -6
- package/dist/bmodel/code.cjs.map +1 -1
- package/dist/bmodel/code.d.ts +17 -13
- package/dist/bmodel/code.js +6 -4
- package/dist/bmodel/code.js.map +1 -1
- package/dist/bmodel/container.d.ts +46 -44
- package/dist/bmodel/index.cjs +3 -0
- package/dist/bmodel/index.d.ts +5 -6
- package/dist/bmodel/index.js +3 -0
- package/dist/bmodel/normalization.cjs +90 -106
- package/dist/bmodel/normalization.cjs.map +1 -1
- package/dist/bmodel/normalization.d.ts +7 -3
- package/dist/bmodel/normalization.js +90 -105
- package/dist/bmodel/normalization.js.map +1 -1
- package/dist/bmodel/types.d.ts +4 -1
- package/dist/branding.d.ts +5 -5
- package/dist/common_types.d.ts +19 -15
- package/dist/driver_kit.d.ts +25 -17
- package/dist/drivers/ChunkedStreamReader.cjs +168 -203
- package/dist/drivers/ChunkedStreamReader.cjs.map +1 -1
- package/dist/drivers/ChunkedStreamReader.d.ts +104 -100
- package/dist/drivers/ChunkedStreamReader.js +168 -202
- package/dist/drivers/ChunkedStreamReader.js.map +1 -1
- package/dist/drivers/blob.cjs +15 -17
- package/dist/drivers/blob.cjs.map +1 -1
- package/dist/drivers/blob.d.ts +35 -35
- package/dist/drivers/blob.js +14 -15
- package/dist/drivers/blob.js.map +1 -1
- package/dist/drivers/index.cjs +18 -0
- package/dist/drivers/index.d.ts +29 -9
- package/dist/drivers/index.js +18 -0
- package/dist/drivers/interfaces.d.ts +17 -14
- package/dist/drivers/log.cjs +4 -3
- package/dist/drivers/log.cjs.map +1 -1
- package/dist/drivers/log.d.ts +52 -49
- package/dist/drivers/log.js +4 -2
- package/dist/drivers/log.js.map +1 -1
- package/dist/drivers/ls.cjs +16 -19
- package/dist/drivers/ls.cjs.map +1 -1
- package/dist/drivers/ls.d.ts +73 -76
- package/dist/drivers/ls.js +16 -17
- package/dist/drivers/ls.js.map +1 -1
- package/dist/drivers/pframe/column_filter.d.ts +19 -15
- package/dist/drivers/pframe/data_info.cjs +201 -252
- package/dist/drivers/pframe/data_info.cjs.map +1 -1
- package/dist/drivers/pframe/data_info.d.ts +84 -109
- package/dist/drivers/pframe/data_info.js +201 -250
- package/dist/drivers/pframe/data_info.js.map +1 -1
- package/dist/drivers/pframe/data_types.cjs +38 -63
- package/dist/drivers/pframe/data_types.cjs.map +1 -1
- package/dist/drivers/pframe/data_types.d.ts +91 -93
- package/dist/drivers/pframe/data_types.js +38 -61
- package/dist/drivers/pframe/data_types.js.map +1 -1
- package/dist/drivers/pframe/driver.cjs +7 -0
- package/dist/drivers/pframe/driver.cjs.map +1 -0
- package/dist/drivers/pframe/driver.d.ts +50 -45
- package/dist/drivers/pframe/driver.js +6 -0
- package/dist/drivers/pframe/driver.js.map +1 -0
- package/dist/drivers/pframe/filter_spec.d.ts +127 -123
- package/dist/drivers/pframe/find_columns.d.ts +21 -17
- package/dist/drivers/pframe/index.cjs +15 -0
- package/dist/drivers/pframe/index.d.ts +23 -16
- package/dist/drivers/pframe/index.js +15 -0
- package/dist/drivers/pframe/linker_columns.cjs +184 -238
- package/dist/drivers/pframe/linker_columns.cjs.map +1 -1
- package/dist/drivers/pframe/linker_columns.d.ts +45 -38
- package/dist/drivers/pframe/linker_columns.js +184 -236
- package/dist/drivers/pframe/linker_columns.js.map +1 -1
- package/dist/drivers/pframe/pframe.d.ts +26 -21
- package/dist/drivers/pframe/query/index.cjs +1 -0
- package/dist/drivers/pframe/query/index.d.ts +3 -4
- package/dist/drivers/pframe/query/index.js +1 -0
- package/dist/drivers/pframe/query/query_common.d.ts +205 -247
- package/dist/drivers/pframe/query/query_data.d.ts +25 -23
- package/dist/drivers/pframe/query/query_spec.d.ts +30 -29
- package/dist/drivers/pframe/query/utils.cjs +164 -183
- package/dist/drivers/pframe/query/utils.cjs.map +1 -1
- package/dist/drivers/pframe/query/utils.d.ts +13 -12
- package/dist/drivers/pframe/query/utils.js +164 -181
- package/dist/drivers/pframe/query/utils.js.map +1 -1
- package/dist/drivers/pframe/spec/anchored.cjs +178 -216
- package/dist/drivers/pframe/spec/anchored.cjs.map +1 -1
- package/dist/drivers/pframe/spec/anchored.d.ts +53 -49
- package/dist/drivers/pframe/spec/anchored.js +176 -214
- package/dist/drivers/pframe/spec/anchored.js.map +1 -1
- package/dist/drivers/pframe/spec/filtered_column.cjs +8 -7
- package/dist/drivers/pframe/spec/filtered_column.cjs.map +1 -1
- package/dist/drivers/pframe/spec/filtered_column.d.ts +20 -17
- package/dist/drivers/pframe/spec/filtered_column.js +8 -6
- package/dist/drivers/pframe/spec/filtered_column.js.map +1 -1
- package/dist/drivers/pframe/spec/ids.cjs +16 -14
- package/dist/drivers/pframe/spec/ids.cjs.map +1 -1
- package/dist/drivers/pframe/spec/ids.d.ts +13 -8
- package/dist/drivers/pframe/spec/ids.js +14 -12
- package/dist/drivers/pframe/spec/ids.js.map +1 -1
- package/dist/drivers/pframe/spec/index.cjs +6 -0
- package/dist/drivers/pframe/spec/index.d.ts +6 -7
- package/dist/drivers/pframe/spec/index.js +6 -0
- package/dist/drivers/pframe/spec/native_id.cjs +16 -16
- package/dist/drivers/pframe/spec/native_id.cjs.map +1 -1
- package/dist/drivers/pframe/spec/native_id.d.ts +9 -4
- package/dist/drivers/pframe/spec/native_id.js +13 -13
- package/dist/drivers/pframe/spec/native_id.js.map +1 -1
- package/dist/drivers/pframe/spec/selectors.cjs +72 -112
- package/dist/drivers/pframe/spec/selectors.cjs.map +1 -1
- package/dist/drivers/pframe/spec/selectors.d.ts +99 -94
- package/dist/drivers/pframe/spec/selectors.js +72 -110
- package/dist/drivers/pframe/spec/selectors.js.map +1 -1
- package/dist/drivers/pframe/spec/spec.cjs +282 -324
- package/dist/drivers/pframe/spec/spec.cjs.map +1 -1
- package/dist/drivers/pframe/spec/spec.d.ts +263 -272
- package/dist/drivers/pframe/spec/spec.js +281 -322
- package/dist/drivers/pframe/spec/spec.js.map +1 -1
- package/dist/drivers/pframe/table.d.ts +28 -24
- package/dist/drivers/pframe/table_calculate.cjs +117 -147
- package/dist/drivers/pframe/table_calculate.cjs.map +1 -1
- package/dist/drivers/pframe/table_calculate.d.ts +219 -220
- package/dist/drivers/pframe/table_calculate.js +117 -145
- package/dist/drivers/pframe/table_calculate.js.map +1 -1
- package/dist/drivers/pframe/table_common.cjs +13 -14
- package/dist/drivers/pframe/table_common.cjs.map +1 -1
- package/dist/drivers/pframe/table_common.d.ts +24 -19
- package/dist/drivers/pframe/table_common.js +13 -13
- package/dist/drivers/pframe/table_common.js.map +1 -1
- package/dist/drivers/pframe/unique_values.d.ts +23 -18
- package/dist/drivers/upload.d.ts +21 -18
- package/dist/drivers/urls.cjs +5 -6
- package/dist/drivers/urls.cjs.map +1 -1
- package/dist/drivers/urls.d.ts +12 -9
- package/dist/drivers/urls.js +5 -5
- package/dist/drivers/urls.js.map +1 -1
- package/dist/errors.cjs +65 -86
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.ts +36 -33
- package/dist/errors.js +65 -85
- package/dist/errors.js.map +1 -1
- package/dist/flags/block_flags.cjs +7 -6
- package/dist/flags/block_flags.cjs.map +1 -1
- package/dist/flags/block_flags.d.ts +12 -8
- package/dist/flags/block_flags.js +7 -5
- package/dist/flags/block_flags.js.map +1 -1
- package/dist/flags/flag_utils.cjs +69 -108
- package/dist/flags/flag_utils.cjs.map +1 -1
- package/dist/flags/flag_utils.d.ts +40 -42
- package/dist/flags/flag_utils.js +70 -107
- package/dist/flags/flag_utils.js.map +1 -1
- package/dist/flags/type_utils.d.ts +12 -11
- package/dist/httpAuth.cjs +16 -20
- package/dist/httpAuth.cjs.map +1 -1
- package/dist/httpAuth.d.ts +10 -7
- package/dist/httpAuth.js +16 -19
- package/dist/httpAuth.js.map +1 -1
- package/dist/index.cjs +176 -179
- package/dist/index.d.ts +58 -20
- package/dist/index.js +37 -34
- package/dist/json.cjs +10 -8
- package/dist/json.cjs.map +1 -1
- package/dist/json.d.ts +18 -18
- package/dist/json.js +8 -6
- package/dist/json.js.map +1 -1
- package/dist/navigation.cjs +3 -2
- package/dist/navigation.cjs.map +1 -1
- package/dist/navigation.d.ts +18 -21
- package/dist/navigation.js +3 -1
- package/dist/navigation.js.map +1 -1
- package/dist/plid.cjs +16 -20
- package/dist/plid.cjs.map +1 -1
- package/dist/plid.d.ts +11 -7
- package/dist/plid.js +15 -18
- package/dist/plid.js.map +1 -1
- package/dist/pool/entry.d.ts +11 -11
- package/dist/pool/index.d.ts +3 -4
- package/dist/pool/query.cjs +21 -43
- package/dist/pool/query.cjs.map +1 -1
- package/dist/pool/query.d.ts +25 -20
- package/dist/pool/query.js +20 -40
- package/dist/pool/query.js.map +1 -1
- package/dist/pool/spec.cjs +40 -47
- package/dist/pool/spec.cjs.map +1 -1
- package/dist/pool/spec.d.ts +33 -31
- package/dist/pool/spec.js +40 -45
- package/dist/pool/spec.js.map +1 -1
- package/dist/ref.cjs +51 -71
- package/dist/ref.cjs.map +1 -1
- package/dist/ref.d.ts +36 -33
- package/dist/ref.js +50 -69
- package/dist/ref.js.map +1 -1
- package/dist/utag.d.ts +18 -14
- package/dist/util.cjs +8 -7
- package/dist/util.cjs.map +1 -1
- package/dist/util.d.ts +5 -2
- package/dist/util.js +8 -6
- package/dist/util.js.map +1 -1
- package/dist/value_or_error.cjs +7 -3
- package/dist/value_or_error.cjs.map +1 -1
- package/dist/value_or_error.d.ts +9 -6
- package/dist/value_or_error.js +7 -2
- package/dist/value_or_error.js.map +1 -1
- package/package.json +6 -6
- package/src/flags/block_flags.ts +2 -1
- package/src/flags/flag_utils.ts +0 -22
- package/dist/author_marker.d.ts.map +0 -1
- package/dist/base32_encode.d.ts +0 -8
- package/dist/base32_encode.d.ts.map +0 -1
- package/dist/base64.d.ts.map +0 -1
- package/dist/block_state.d.ts.map +0 -1
- package/dist/bmodel/block_config.d.ts.map +0 -1
- package/dist/bmodel/code.d.ts.map +0 -1
- package/dist/bmodel/container.d.ts.map +0 -1
- package/dist/bmodel/index.d.ts.map +0 -1
- package/dist/bmodel/normalization.d.ts.map +0 -1
- package/dist/bmodel/types.d.ts.map +0 -1
- package/dist/branding.d.ts.map +0 -1
- package/dist/common_types.d.ts.map +0 -1
- package/dist/driver_kit.d.ts.map +0 -1
- package/dist/drivers/ChunkedStreamReader.d.ts.map +0 -1
- package/dist/drivers/blob.d.ts.map +0 -1
- package/dist/drivers/index.d.ts.map +0 -1
- package/dist/drivers/interfaces.d.ts.map +0 -1
- package/dist/drivers/log.d.ts.map +0 -1
- package/dist/drivers/ls.d.ts.map +0 -1
- package/dist/drivers/pframe/column_filter.d.ts.map +0 -1
- package/dist/drivers/pframe/data_info.d.ts.map +0 -1
- package/dist/drivers/pframe/data_types.d.ts.map +0 -1
- package/dist/drivers/pframe/driver.d.ts.map +0 -1
- package/dist/drivers/pframe/filter_spec.d.ts.map +0 -1
- package/dist/drivers/pframe/find_columns.d.ts.map +0 -1
- package/dist/drivers/pframe/index.d.ts.map +0 -1
- package/dist/drivers/pframe/linker_columns.d.ts.map +0 -1
- package/dist/drivers/pframe/pframe.d.ts.map +0 -1
- package/dist/drivers/pframe/query/index.d.ts.map +0 -1
- package/dist/drivers/pframe/query/query_common.d.ts.map +0 -1
- package/dist/drivers/pframe/query/query_data.d.ts.map +0 -1
- package/dist/drivers/pframe/query/query_spec.d.ts.map +0 -1
- package/dist/drivers/pframe/query/utils.d.ts.map +0 -1
- package/dist/drivers/pframe/spec/anchored.d.ts.map +0 -1
- package/dist/drivers/pframe/spec/filtered_column.d.ts.map +0 -1
- package/dist/drivers/pframe/spec/ids.d.ts.map +0 -1
- package/dist/drivers/pframe/spec/index.d.ts.map +0 -1
- package/dist/drivers/pframe/spec/native_id.d.ts.map +0 -1
- package/dist/drivers/pframe/spec/selectors.d.ts.map +0 -1
- package/dist/drivers/pframe/spec/spec.d.ts.map +0 -1
- package/dist/drivers/pframe/table.d.ts.map +0 -1
- package/dist/drivers/pframe/table_calculate.d.ts.map +0 -1
- package/dist/drivers/pframe/table_common.d.ts.map +0 -1
- package/dist/drivers/pframe/type_util.d.ts +0 -5
- package/dist/drivers/pframe/type_util.d.ts.map +0 -1
- package/dist/drivers/pframe/unique_values.d.ts.map +0 -1
- package/dist/drivers/upload.d.ts.map +0 -1
- package/dist/drivers/urls.d.ts.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/flags/block_flags.d.ts.map +0 -1
- package/dist/flags/flag_utils.d.ts.map +0 -1
- package/dist/flags/index.d.ts +0 -4
- package/dist/flags/index.d.ts.map +0 -1
- package/dist/flags/type_utils.d.ts.map +0 -1
- package/dist/httpAuth.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/json.d.ts.map +0 -1
- package/dist/navigation.d.ts.map +0 -1
- package/dist/plid.d.ts.map +0 -1
- package/dist/pool/entry.d.ts.map +0 -1
- package/dist/pool/index.d.ts.map +0 -1
- package/dist/pool/query.d.ts.map +0 -1
- package/dist/pool/spec.d.ts.map +0 -1
- package/dist/ref.d.ts.map +0 -1
- package/dist/utag.d.ts.map +0 -1
- package/dist/util.d.ts.map +0 -1
- package/dist/value_or_error.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"driver.cjs","names":[],"sources":["../../../src/drivers/pframe/driver.ts"],"sourcesContent":["import type { Branded } from \"../../branding\";\nimport type { PTable } from \"./table\";\nimport type { PFrame } from \"./pframe\";\nimport type { AddParameterToAllMethods } from \"./type_util\";\nimport type { PTableShape, PTableVector, TableRange } from \"./data_types\";\nimport type { FindColumnsRequest, FindColumnsResponse } from \"./find_columns\";\nimport type { PObjectId } from \"../../pool\";\nimport type { PColumnIdAndSpec, PColumnSpec } from \"./spec/spec\";\nimport type { CalculateTableDataRequest, CalculateTableDataResponse } from \"./table_calculate\";\nimport type { UniqueValuesRequest, UniqueValuesResponse } from \"./unique_values\";\nimport type { PTableColumnSpec } from \"./table_common\";\n\n/** PFrame handle */\nexport type PFrameHandle = Branded<string, \"PFrame\">;\n\n/** PFrame handle */\nexport type PTableHandle = Branded<string, \"PTable\">;\n\n/** Allows to access main data layer features of platforma */\nexport interface PFrameDriver {\n //\n // PFrame methods\n //\n\n /**\n * Finds columns given filtering criteria on column name, annotations etc.\n * and a set of axes ids to find only columns with compatible specs.\n * */\n findColumns(handle: PFrameHandle, request: FindColumnsRequest): Promise<FindColumnsResponse>;\n\n /** Retrieve single column spec */\n getColumnSpec(handle: PFrameHandle, columnId: PObjectId): Promise<PColumnSpec | null>;\n\n /** Retrieve information about all columns currently added to the PFrame */\n listColumns(handle: PFrameHandle): Promise<PColumnIdAndSpec[]>;\n\n /** Calculates data for the table and returns complete data representation of it */\n calculateTableData(\n handle: PFrameHandle,\n request: CalculateTableDataRequest<PObjectId>,\n range?: TableRange,\n ): Promise<CalculateTableDataResponse>;\n\n /** Calculate set of unique values for a specific axis for the filtered set of records */\n getUniqueValues(\n handle: PFrameHandle,\n request: UniqueValuesRequest,\n ): Promise<UniqueValuesResponse>;\n\n //\n // PTable methods\n //\n\n /** Unified table shape */\n getShape(handle: PTableHandle): Promise<PTableShape>;\n\n /**\n * Returns ordered array of table axes specs (primary key \"columns\" in SQL\n * terms) and data column specs (regular \"columns\" in SQL terms).\n *\n * Data for a specific table column can be retrieved using unified indexing\n * corresponding to elements in this array.\n *\n * Axes are always listed first.\n * */\n getSpec(handle: PTableHandle): Promise<PTableColumnSpec[]>;\n\n /**\n * Retrieve the data from the table. To retrieve only data required, it can be\n * sliced both horizontally ({@link columnIndices}) and vertically\n * ({@link range}).\n *\n * @param columnIndices unified indices of columns to be retrieved\n * @param range optionally limit the range of records to retrieve\n * */\n getData(\n handle: PTableHandle,\n columnIndices: number[],\n range?: TableRange,\n ): Promise<PTableVector[]>;\n}\n\n//\n// The following keeps the PFrame driver from above to be in sync with\n// PFrame and PTable interfaces.\n//\n\ntype ExpectedPFrameDriverTypeF = AddParameterToAllMethods<PFrame, [handle: PFrameHandle]>;\ntype ExpectedPFrameDriverTypeT = AddParameterToAllMethods<PTable, [handle: PTableHandle]>;\ntype ExpectedPFrameDriverType = ExpectedPFrameDriverTypeF & ExpectedPFrameDriverTypeT;\n\ntype TypeEqualityGuard<A, B> = Exclude<A, B> | Exclude<B, A>;\nfunction assert<_T extends never>() {}\n\nassert<TypeEqualityGuard<PFrameDriver, ExpectedPFrameDriverType>>();\n"],"mappings":";;AA4FA,SAAS,SAA2B;AAEpC,QAAmE"}
|
|
@@ -1,50 +1,55 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { Branded } from "../../branding.js";
|
|
2
|
+
import { PObjectId } from "../../pool/spec.js";
|
|
3
|
+
import "../../pool/index.js";
|
|
4
|
+
import { PColumnIdAndSpec, PColumnSpec } from "./spec/spec.js";
|
|
5
|
+
import { PTableShape, PTableVector, TableRange } from "./data_types.js";
|
|
6
|
+
import { FindColumnsRequest, FindColumnsResponse } from "./find_columns.js";
|
|
7
|
+
import { PTableColumnSpec } from "./table_common.js";
|
|
8
|
+
import { CalculateTableDataRequest, CalculateTableDataResponse } from "./table_calculate.js";
|
|
9
|
+
import { UniqueValuesRequest, UniqueValuesResponse } from "./unique_values.js";
|
|
10
|
+
|
|
11
|
+
//#region src/drivers/pframe/driver.d.ts
|
|
9
12
|
/** PFrame handle */
|
|
10
|
-
|
|
13
|
+
type PFrameHandle = Branded<string, "PFrame">;
|
|
11
14
|
/** PFrame handle */
|
|
12
|
-
|
|
15
|
+
type PTableHandle = Branded<string, "PTable">;
|
|
13
16
|
/** Allows to access main data layer features of platforma */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
17
|
+
interface PFrameDriver {
|
|
18
|
+
/**
|
|
19
|
+
* Finds columns given filtering criteria on column name, annotations etc.
|
|
20
|
+
* and a set of axes ids to find only columns with compatible specs.
|
|
21
|
+
* */
|
|
22
|
+
findColumns(handle: PFrameHandle, request: FindColumnsRequest): Promise<FindColumnsResponse>;
|
|
23
|
+
/** Retrieve single column spec */
|
|
24
|
+
getColumnSpec(handle: PFrameHandle, columnId: PObjectId): Promise<PColumnSpec | null>;
|
|
25
|
+
/** Retrieve information about all columns currently added to the PFrame */
|
|
26
|
+
listColumns(handle: PFrameHandle): Promise<PColumnIdAndSpec[]>;
|
|
27
|
+
/** Calculates data for the table and returns complete data representation of it */
|
|
28
|
+
calculateTableData(handle: PFrameHandle, request: CalculateTableDataRequest<PObjectId>, range?: TableRange): Promise<CalculateTableDataResponse>;
|
|
29
|
+
/** Calculate set of unique values for a specific axis for the filtered set of records */
|
|
30
|
+
getUniqueValues(handle: PFrameHandle, request: UniqueValuesRequest): Promise<UniqueValuesResponse>;
|
|
31
|
+
/** Unified table shape */
|
|
32
|
+
getShape(handle: PTableHandle): Promise<PTableShape>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns ordered array of table axes specs (primary key "columns" in SQL
|
|
35
|
+
* terms) and data column specs (regular "columns" in SQL terms).
|
|
36
|
+
*
|
|
37
|
+
* Data for a specific table column can be retrieved using unified indexing
|
|
38
|
+
* corresponding to elements in this array.
|
|
39
|
+
*
|
|
40
|
+
* Axes are always listed first.
|
|
41
|
+
* */
|
|
42
|
+
getSpec(handle: PTableHandle): Promise<PTableColumnSpec[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve the data from the table. To retrieve only data required, it can be
|
|
45
|
+
* sliced both horizontally ({@link columnIndices}) and vertically
|
|
46
|
+
* ({@link range}).
|
|
47
|
+
*
|
|
48
|
+
* @param columnIndices unified indices of columns to be retrieved
|
|
49
|
+
* @param range optionally limit the range of records to retrieve
|
|
50
|
+
* */
|
|
51
|
+
getData(handle: PTableHandle, columnIndices: number[], range?: TableRange): Promise<PTableVector[]>;
|
|
49
52
|
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { PFrameDriver, PFrameHandle, PTableHandle };
|
|
50
55
|
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"driver.js","names":[],"sources":["../../../src/drivers/pframe/driver.ts"],"sourcesContent":["import type { Branded } from \"../../branding\";\nimport type { PTable } from \"./table\";\nimport type { PFrame } from \"./pframe\";\nimport type { AddParameterToAllMethods } from \"./type_util\";\nimport type { PTableShape, PTableVector, TableRange } from \"./data_types\";\nimport type { FindColumnsRequest, FindColumnsResponse } from \"./find_columns\";\nimport type { PObjectId } from \"../../pool\";\nimport type { PColumnIdAndSpec, PColumnSpec } from \"./spec/spec\";\nimport type { CalculateTableDataRequest, CalculateTableDataResponse } from \"./table_calculate\";\nimport type { UniqueValuesRequest, UniqueValuesResponse } from \"./unique_values\";\nimport type { PTableColumnSpec } from \"./table_common\";\n\n/** PFrame handle */\nexport type PFrameHandle = Branded<string, \"PFrame\">;\n\n/** PFrame handle */\nexport type PTableHandle = Branded<string, \"PTable\">;\n\n/** Allows to access main data layer features of platforma */\nexport interface PFrameDriver {\n //\n // PFrame methods\n //\n\n /**\n * Finds columns given filtering criteria on column name, annotations etc.\n * and a set of axes ids to find only columns with compatible specs.\n * */\n findColumns(handle: PFrameHandle, request: FindColumnsRequest): Promise<FindColumnsResponse>;\n\n /** Retrieve single column spec */\n getColumnSpec(handle: PFrameHandle, columnId: PObjectId): Promise<PColumnSpec | null>;\n\n /** Retrieve information about all columns currently added to the PFrame */\n listColumns(handle: PFrameHandle): Promise<PColumnIdAndSpec[]>;\n\n /** Calculates data for the table and returns complete data representation of it */\n calculateTableData(\n handle: PFrameHandle,\n request: CalculateTableDataRequest<PObjectId>,\n range?: TableRange,\n ): Promise<CalculateTableDataResponse>;\n\n /** Calculate set of unique values for a specific axis for the filtered set of records */\n getUniqueValues(\n handle: PFrameHandle,\n request: UniqueValuesRequest,\n ): Promise<UniqueValuesResponse>;\n\n //\n // PTable methods\n //\n\n /** Unified table shape */\n getShape(handle: PTableHandle): Promise<PTableShape>;\n\n /**\n * Returns ordered array of table axes specs (primary key \"columns\" in SQL\n * terms) and data column specs (regular \"columns\" in SQL terms).\n *\n * Data for a specific table column can be retrieved using unified indexing\n * corresponding to elements in this array.\n *\n * Axes are always listed first.\n * */\n getSpec(handle: PTableHandle): Promise<PTableColumnSpec[]>;\n\n /**\n * Retrieve the data from the table. To retrieve only data required, it can be\n * sliced both horizontally ({@link columnIndices}) and vertically\n * ({@link range}).\n *\n * @param columnIndices unified indices of columns to be retrieved\n * @param range optionally limit the range of records to retrieve\n * */\n getData(\n handle: PTableHandle,\n columnIndices: number[],\n range?: TableRange,\n ): Promise<PTableVector[]>;\n}\n\n//\n// The following keeps the PFrame driver from above to be in sync with\n// PFrame and PTable interfaces.\n//\n\ntype ExpectedPFrameDriverTypeF = AddParameterToAllMethods<PFrame, [handle: PFrameHandle]>;\ntype ExpectedPFrameDriverTypeT = AddParameterToAllMethods<PTable, [handle: PTableHandle]>;\ntype ExpectedPFrameDriverType = ExpectedPFrameDriverTypeF & ExpectedPFrameDriverTypeT;\n\ntype TypeEqualityGuard<A, B> = Exclude<A, B> | Exclude<B, A>;\nfunction assert<_T extends never>() {}\n\nassert<TypeEqualityGuard<PFrameDriver, ExpectedPFrameDriverType>>();\n"],"mappings":";AA4FA,SAAS,SAA2B;AAEpC,QAAmE"}
|
|
@@ -1,132 +1,136 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SUniversalPColumnId } from "./spec/ids.js";
|
|
2
|
+
|
|
3
|
+
//#region src/drivers/pframe/filter_spec.d.ts
|
|
4
|
+
type FilterSpecNode<Leaf, CommonNode = {}, CommonLeaf = {}> = (CommonLeaf & Leaf) | (CommonNode & {
|
|
5
|
+
type: "not";
|
|
6
|
+
filter: FilterSpecNode<Leaf, CommonNode, CommonLeaf>;
|
|
5
7
|
}) | (CommonNode & {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
type: "or";
|
|
9
|
+
filters: FilterSpecNode<Leaf, CommonNode, CommonLeaf>[];
|
|
8
10
|
}) | (CommonNode & {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
type: "and";
|
|
12
|
+
filters: FilterSpecNode<Leaf, CommonNode, CommonLeaf>[];
|
|
11
13
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} | {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} | {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} | {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} | {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} | {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} | {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} | {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} | {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
} | {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} | {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} | {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
} | {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} | {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
} | {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
} | {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
} | {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
} | {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
} | {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
} | {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
} | {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
} | {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
} | {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
} | {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
} | {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
14
|
+
type FilterSpecLeaf<T = SUniversalPColumnId> = {
|
|
15
|
+
type: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
type: "isNA";
|
|
18
|
+
column: T;
|
|
19
|
+
} | {
|
|
20
|
+
type: "isNotNA";
|
|
21
|
+
column: T;
|
|
22
|
+
} | {
|
|
23
|
+
type: "ifNa";
|
|
24
|
+
column: T;
|
|
25
|
+
replacement: string;
|
|
26
|
+
} | {
|
|
27
|
+
type: "patternEquals";
|
|
28
|
+
column: T;
|
|
29
|
+
value: string;
|
|
30
|
+
} | {
|
|
31
|
+
type: "patternNotEquals";
|
|
32
|
+
column: T;
|
|
33
|
+
value: string;
|
|
34
|
+
} | {
|
|
35
|
+
type: "patternContainSubsequence";
|
|
36
|
+
column: T;
|
|
37
|
+
value: string;
|
|
38
|
+
} | {
|
|
39
|
+
type: "patternNotContainSubsequence";
|
|
40
|
+
column: T;
|
|
41
|
+
value: string;
|
|
42
|
+
} | {
|
|
43
|
+
type: "patternMatchesRegularExpression";
|
|
44
|
+
column: T;
|
|
45
|
+
value: string;
|
|
46
|
+
} | {
|
|
47
|
+
type: "patternFuzzyContainSubsequence";
|
|
48
|
+
column: T;
|
|
49
|
+
value: string;
|
|
50
|
+
maxEdits?: number;
|
|
51
|
+
substitutionsOnly?: boolean;
|
|
52
|
+
wildcard?: string;
|
|
53
|
+
} | {
|
|
54
|
+
type: "inSet";
|
|
55
|
+
column: T;
|
|
56
|
+
value: string[];
|
|
57
|
+
} | {
|
|
58
|
+
type: "notInSet";
|
|
59
|
+
column: T;
|
|
60
|
+
value: string[];
|
|
61
|
+
} | {
|
|
62
|
+
type: "topN";
|
|
63
|
+
column: T;
|
|
64
|
+
n: number;
|
|
65
|
+
} | {
|
|
66
|
+
type: "bottomN";
|
|
67
|
+
column: T;
|
|
68
|
+
n: number;
|
|
69
|
+
} | {
|
|
70
|
+
type: "equal";
|
|
71
|
+
column: T;
|
|
72
|
+
x: number;
|
|
73
|
+
} | {
|
|
74
|
+
type: "notEqual";
|
|
75
|
+
column: T;
|
|
76
|
+
x: number;
|
|
77
|
+
} | {
|
|
78
|
+
type: "lessThan";
|
|
79
|
+
column: T;
|
|
80
|
+
x: number;
|
|
81
|
+
} | {
|
|
82
|
+
type: "greaterThan";
|
|
83
|
+
column: T;
|
|
84
|
+
x: number;
|
|
85
|
+
} | {
|
|
86
|
+
type: "lessThanOrEqual";
|
|
87
|
+
column: T;
|
|
88
|
+
x: number;
|
|
89
|
+
} | {
|
|
90
|
+
type: "greaterThanOrEqual";
|
|
91
|
+
column: T;
|
|
92
|
+
x: number;
|
|
93
|
+
} | {
|
|
94
|
+
type: "equalToColumn";
|
|
95
|
+
column: T;
|
|
96
|
+
rhs: T;
|
|
97
|
+
} | {
|
|
98
|
+
type: "lessThanColumn";
|
|
99
|
+
column: T;
|
|
100
|
+
rhs: T;
|
|
101
|
+
minDiff?: number;
|
|
102
|
+
} | {
|
|
103
|
+
type: "greaterThanColumn";
|
|
104
|
+
column: T;
|
|
105
|
+
rhs: T;
|
|
106
|
+
minDiff?: number;
|
|
107
|
+
} | {
|
|
108
|
+
type: "lessThanColumnOrEqual";
|
|
109
|
+
column: T;
|
|
110
|
+
rhs: T;
|
|
111
|
+
minDiff?: number;
|
|
112
|
+
} | {
|
|
113
|
+
type: "greaterThanColumnOrEqual";
|
|
114
|
+
column: T;
|
|
115
|
+
rhs: T;
|
|
116
|
+
minDiff?: number;
|
|
115
117
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
type FilterSpec<Leaf extends FilterSpecLeaf<unknown> = FilterSpecLeaf<SUniversalPColumnId>, CommonNode = {}, CommonLeaf = CommonNode> = FilterSpecNode<Leaf, CommonNode, CommonLeaf>;
|
|
119
|
+
type RootFilterSpec<Leaf extends FilterSpecLeaf<unknown> = FilterSpecLeaf<SUniversalPColumnId>, CommonNode = {}, CommonLeaf = CommonNode> = Extract<FilterSpec<Leaf, CommonNode, CommonLeaf>, {
|
|
120
|
+
type: "or" | "and";
|
|
119
121
|
}>;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
type FilterSpecType = Exclude<FilterSpec, {
|
|
123
|
+
type: undefined;
|
|
122
124
|
}>["type"];
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
type FilterSpecOfType<T extends FilterSpecType> = Extract<FilterSpec, {
|
|
126
|
+
type: T;
|
|
125
127
|
}>;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
128
|
+
type InferFilterSpecLeaf<T extends FilterSpec<FilterSpecLeaf<unknown>>> = T extends FilterSpecNode<infer Leaf, unknown, unknown> ? Leaf : never;
|
|
129
|
+
type InferFilterSpecLeafColumn<T extends FilterSpec<FilterSpecLeaf<unknown>>> = T extends FilterSpecNode<infer Leaf, unknown, unknown> ? Leaf extends {
|
|
130
|
+
column: infer C;
|
|
129
131
|
} ? C : never : never;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
type InferFilterSpecCommonNode<T extends FilterSpec<FilterSpecLeaf<unknown>, unknown, unknown>> = T extends FilterSpecNode<unknown, infer CommonNode, unknown> ? CommonNode : never;
|
|
133
|
+
type InferFilterSpecCommonLeaf<T extends FilterSpec<FilterSpecLeaf<unknown>, unknown, unknown>> = T extends FilterSpecNode<unknown, unknown, infer CommonLeaf> ? CommonLeaf : never;
|
|
134
|
+
//#endregion
|
|
135
|
+
export { FilterSpec, FilterSpecLeaf, FilterSpecNode, FilterSpecOfType, FilterSpecType, InferFilterSpecCommonLeaf, InferFilterSpecCommonNode, InferFilterSpecLeaf, InferFilterSpecLeafColumn, RootFilterSpec };
|
|
132
136
|
//# sourceMappingURL=filter_spec.d.ts.map
|
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { AxisId, PColumnIdAndSpec } from "./spec/spec.js";
|
|
2
|
+
import { ColumnFilter } from "./column_filter.js";
|
|
3
|
+
|
|
4
|
+
//#region src/drivers/pframe/find_columns.d.ts
|
|
3
5
|
/**
|
|
4
6
|
* Request to search among existing columns in the PFrame. Two filtering
|
|
5
7
|
* criteria can be used: (1) column ашдеук, to search for columns with
|
|
6
8
|
* specific properties like name, annotations and domains, and (2) being
|
|
7
9
|
* compatible with the given list of axis ids.
|
|
8
10
|
* */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
interface FindColumnsRequest {
|
|
12
|
+
/** Basic column filter */
|
|
13
|
+
readonly columnFilter: ColumnFilter;
|
|
14
|
+
/** Will only search for columns compatible with these list of axis ids */
|
|
15
|
+
readonly compatibleWith: AxisId[];
|
|
16
|
+
/**
|
|
17
|
+
* Defines what level of compatibility with provided list of axis ids is required.
|
|
18
|
+
*
|
|
19
|
+
* If true will search only for such columns which axes completely maps onto the
|
|
20
|
+
* axes listed in the {@link compatibleWith} list.
|
|
21
|
+
* */
|
|
22
|
+
readonly strictlyCompatible: boolean;
|
|
21
23
|
}
|
|
22
24
|
/** Response for {@link FindColumnsRequest} */
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
interface FindColumnsResponse {
|
|
26
|
+
/** Array of column ids found using request criteria. */
|
|
27
|
+
readonly hits: PColumnIdAndSpec[];
|
|
26
28
|
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { FindColumnsRequest, FindColumnsResponse };
|
|
27
31
|
//# sourceMappingURL=find_columns.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const require_data_info = require('./data_info.cjs');
|
|
2
|
+
const require_spec = require('./spec/spec.cjs');
|
|
3
|
+
const require_data_types = require('./data_types.cjs');
|
|
4
|
+
const require_utils = require('./query/utils.cjs');
|
|
5
|
+
require('./query/index.cjs');
|
|
6
|
+
const require_table_calculate = require('./table_calculate.cjs');
|
|
7
|
+
const require_table_common = require('./table_common.cjs');
|
|
8
|
+
const require_ids = require('./spec/ids.cjs');
|
|
9
|
+
const require_anchored = require('./spec/anchored.cjs');
|
|
10
|
+
const require_filtered_column = require('./spec/filtered_column.cjs');
|
|
11
|
+
const require_selectors = require('./spec/selectors.cjs');
|
|
12
|
+
const require_native_id = require('./spec/native_id.cjs');
|
|
13
|
+
require('./spec/index.cjs');
|
|
14
|
+
require('./driver.cjs');
|
|
15
|
+
const require_linker_columns = require('./linker_columns.cjs');
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { Annotation, AnnotationJson, AxesId, AxesSpec, AxisId, AxisSpec, AxisSpecNormalized, AxisTree, AxisValueType, ColumnValueType, Domain, DomainJson, Metadata, MetadataJson, PAxisName, PColumn, PColumnIdAndSpec, PColumnInfo, PColumnLazy, PColumnName, PColumnSpec, PColumnSpecId, PDataColumnSpec, PUniversalColumnSpec, ValueType, canonicalizeAxisId, canonicalizeAxisWithParents, getArrayFromAxisTree, getAxesId, getAxesTree, getAxisId, getColumnIdAndSpec, getDenormalizedAxesList, getNormalizedAxesList, getPColumnSpecId, getSetFromAxisTree, getTypeFromPColumnOrAxisSpec, isAxisId, isLabelColumn, isLinkerColumn, matchAxisId, readAnnotation, readAnnotationJson, readAnnotationJsonOrThrow, readDomain, readDomainJson, readDomainJsonOrThrow, readMetadata, readMetadataJson, readMetadataJsonOrThrow } from "./spec/spec.js";
|
|
2
|
+
import { ColumnFilter } from "./column_filter.js";
|
|
3
|
+
import { BinaryChunk, BinaryPartitionedDataInfo, BinaryPartitionedDataInfoEntries, DataInfo, DataInfoEntries, JsonDataInfo, JsonDataInfoEntries, JsonPartitionedDataInfo, JsonPartitionedDataInfoEntries, PColumnDataEntry, PColumnKey, PColumnValue, PColumnValues, PColumnValuesEntry, ParquetChunk, ParquetChunkMapping, ParquetChunkMappingAxis, ParquetChunkMappingColumn, ParquetChunkMetadata, ParquetChunkStats, ParquetPartitionedDataInfo, ParquetPartitionedDataInfoEntries, PartitionedDataInfoEntries, dataInfoToEntries, entriesToDataInfo, isDataInfo, isDataInfoEntries, isPartitionedDataInfoEntries, mapDataInfo, mapDataInfoEntries, visitDataInfo } from "./data_info.js";
|
|
4
|
+
import { AAxisSelector, ADomain, AnchorAxisIdOrRefBasic, AnchorAxisRef, AnchorAxisRefByIdx, AnchorAxisRefByMatcher, AnchorAxisRefByName, AnchorDomainRef, AnchoredColumnMatchStrategy, AnchoredPColumnId, AnchoredPColumnSelector, AxisSelector, PColumnSelector, SingleAxisSelector, isAnchoredPColumnId, matchAxis, matchPColumn, selectorsToPredicate } from "./spec/selectors.js";
|
|
5
|
+
import { AxisFilter, AxisFilterByIdx, AxisFilterByName, AxisFilterValue, FilteredPColumn, FilteredPColumnId, isFilteredPColumn } from "./spec/filtered_column.js";
|
|
6
|
+
import { SUniversalPColumnId, UniversalPColumnId, parseColumnId, stringifyColumnId } from "./spec/ids.js";
|
|
7
|
+
import { FilterSpec, FilterSpecLeaf, FilterSpecNode, FilterSpecOfType, FilterSpecType, InferFilterSpecCommonLeaf, InferFilterSpecCommonNode, InferFilterSpecLeaf, InferFilterSpecLeafColumn, RootFilterSpec } from "./filter_spec.js";
|
|
8
|
+
import { PTableAbsent, PTableNA, PTableShape, PTableValue, PTableValueAxis, PTableValueBranded, PTableValueData, PTableValueDataBranded, PTableValueDouble, PTableValueFloat, PTableValueInt, PTableValueLong, PTableValueString, PTableVector, PTableVectorTyped, PVectorData, PVectorDataBytes, PVectorDataDouble, PVectorDataFloat, PVectorDataInt, PVectorDataLong, PVectorDataString, PVectorDataTyped, TableRange, ValueTypeSupported, isPTableAbsent, isPTableNA, isPTableValueAxis, pTableValue, pTableValueBranded } from "./data_types.js";
|
|
9
|
+
import { FindColumnsRequest, FindColumnsResponse } from "./find_columns.js";
|
|
10
|
+
import { PTableColumnId, PTableColumnIdAxis, PTableColumnIdColumn, PTableColumnSpec, PTableColumnSpecAxis, PTableColumnSpecColumn, getPTableColumnId } from "./table_common.js";
|
|
11
|
+
import { AnchoredIdDeriver, ResolveAnchorsOptions, resolveAnchors } from "./spec/anchored.js";
|
|
12
|
+
import { NativePObjectId, deriveNativeId } from "./spec/native_id.js";
|
|
13
|
+
import "./spec/index.js";
|
|
14
|
+
import { SpecExprAxisRef, SpecExprColumnRef, SpecQuery, SpecQueryBooleanExpression, SpecQueryColumn, SpecQueryExpression, SpecQueryFilter, SpecQueryInlineColumn, SpecQueryJoinEntry, SpecQueryOuterJoin, SpecQuerySliceAxes, SpecQuerySort, SpecQuerySparseToDenseColumn, SpecQuerySymmetricJoin } from "./query/query_spec.js";
|
|
15
|
+
import { ArtificialColumnJoinEntry, CalculateTableDataRequest, CalculateTableDataResponse, ColumnJoinEntry, ConstantAxisFilter, FullJoin, FullPTableColumnData, InlineColumnJoinEntry, InnerJoin, JoinEntry, OuterJoin, PTableDef, PTableDefV2, PTableRecordFilter, PTableRecordSingleValueFilterV2, PTableSorting, SingleValueAndPredicateV2, SingleValueEqualPredicate, SingleValueGreaterOrEqualPredicate, SingleValueGreaterPredicate, SingleValueIEqualPredicate, SingleValueInSetPredicate, SingleValueIsNAPredicate, SingleValueLessOrEqualPredicate, SingleValueLessPredicate, SingleValueMatchesPredicate, SingleValueNotPredicateV2, SingleValueOrPredicateV2, SingleValuePredicateV2, SingleValueStringContainsFuzzyPredicate, SingleValueStringContainsPredicate, SingleValueStringIContainsFuzzyPredicate, SingleValueStringIContainsPredicate, SlicedColumnJoinEntry, mapJoinEntry, mapPTableDef, mapPTableDefV2, sortJoinEntry, sortPTableDef } from "./table_calculate.js";
|
|
16
|
+
import { UniqueValuesRequest, UniqueValuesResponse } from "./unique_values.js";
|
|
17
|
+
import { PFrame, PFrameDef } from "./pframe.js";
|
|
18
|
+
import { PTable } from "./table.js";
|
|
19
|
+
import { DataExprAxisRef, DataExprColumnRef, DataQuery, DataQueryBooleanExpression, DataQueryColumn, DataQueryExpression, DataQueryFilter, DataQueryInlineColumn, DataQueryJoinEntry, DataQueryOuterJoin, DataQuerySliceAxes, DataQuerySort, DataQuerySparseToDenseColumn, DataQuerySymmetricJoin } from "./query/query_data.js";
|
|
20
|
+
import { collectSpecQueryColumns, isBooleanExpression, mapSpecQueryColumns, sortSpecQuery, traverseQuerySpec } from "./query/utils.js";
|
|
21
|
+
import "./query/index.js";
|
|
22
|
+
import { PFrameDriver, PFrameHandle, PTableHandle } from "./driver.js";
|
|
23
|
+
import { CompositeLinkerMap, LinkerMap } from "./linker_columns.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { dataInfoToEntries, entriesToDataInfo, isDataInfo, isDataInfoEntries, isPartitionedDataInfoEntries, mapDataInfo, mapDataInfoEntries, visitDataInfo } from "./data_info.js";
|
|
2
|
+
import { Annotation, AnnotationJson, Domain, DomainJson, PAxisName, PColumnName, ValueType, canonicalizeAxisId, canonicalizeAxisWithParents, getArrayFromAxisTree, getAxesId, getAxesTree, getAxisId, getColumnIdAndSpec, getDenormalizedAxesList, getNormalizedAxesList, getPColumnSpecId, getSetFromAxisTree, getTypeFromPColumnOrAxisSpec, isAxisId, isLabelColumn, isLinkerColumn, matchAxisId, readAnnotation, readAnnotationJson, readAnnotationJsonOrThrow, readDomain, readDomainJson, readDomainJsonOrThrow, readMetadata, readMetadataJson, readMetadataJsonOrThrow } from "./spec/spec.js";
|
|
3
|
+
import { PTableAbsent, PTableNA, isPTableAbsent, isPTableNA, isPTableValueAxis, pTableValue, pTableValueBranded } from "./data_types.js";
|
|
4
|
+
import { collectSpecQueryColumns, isBooleanExpression, mapSpecQueryColumns, sortSpecQuery, traverseQuerySpec } from "./query/utils.js";
|
|
5
|
+
import "./query/index.js";
|
|
6
|
+
import { mapJoinEntry, mapPTableDef, mapPTableDefV2, sortJoinEntry, sortPTableDef } from "./table_calculate.js";
|
|
7
|
+
import { getPTableColumnId } from "./table_common.js";
|
|
8
|
+
import { parseColumnId, stringifyColumnId } from "./spec/ids.js";
|
|
9
|
+
import { AnchoredIdDeriver, resolveAnchors } from "./spec/anchored.js";
|
|
10
|
+
import { isFilteredPColumn } from "./spec/filtered_column.js";
|
|
11
|
+
import { isAnchoredPColumnId, matchAxis, matchPColumn, selectorsToPredicate } from "./spec/selectors.js";
|
|
12
|
+
import { deriveNativeId } from "./spec/native_id.js";
|
|
13
|
+
import "./spec/index.js";
|
|
14
|
+
import "./driver.js";
|
|
15
|
+
import { LinkerMap } from "./linker_columns.js";
|