@milaboratories/pl-model-middle-layer 1.8.42 → 1.8.44
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/pframe/internal_api/api_read.d.ts +1 -28
- package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
- package/dist/pframe/internal_api/pframe.d.ts +1 -25
- package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
- package/dist/pframe/internal_api/table.d.ts +0 -53
- package/dist/pframe/internal_api/table.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/pframe/internal_api/api_read.ts +1 -41
- package/src/pframe/internal_api/pframe.ts +1 -32
- package/src/pframe/internal_api/table.ts +0 -68
|
@@ -2,36 +2,9 @@ import type { FindColumnsRequest, FindColumnsResponse } from './find_columns';
|
|
|
2
2
|
import type { DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse } from './delete_column';
|
|
3
3
|
import type { PColumnInfo, PColumnSpec, PObjectId, UniqueValuesRequest, UniqueValuesResponse } from '@milaboratories/pl-model-common';
|
|
4
4
|
import type { CreateTableRequestV4 } from './create_table';
|
|
5
|
-
import type {
|
|
5
|
+
import type { PTableV8 } from './table';
|
|
6
6
|
import type { PTableId } from './common';
|
|
7
7
|
/** Read interface exposed by PFrames library */
|
|
8
|
-
export interface PFrameReadAPIV10 {
|
|
9
|
-
/**
|
|
10
|
-
* Finds columns given filtering criteria on column name, annotations etc.
|
|
11
|
-
* and a set of qualified axes specs to find only columns with compatible
|
|
12
|
-
* axes spec.
|
|
13
|
-
*
|
|
14
|
-
* Only column specs are used, this method will work even for columns
|
|
15
|
-
* with no assigned data.
|
|
16
|
-
* */
|
|
17
|
-
findColumns(request: FindColumnsRequest): Promise<FindColumnsResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Construct new axes integration with some entry removed but integration qualificaitons preserved.
|
|
20
|
-
* Removes more then one entry in case the removal will create several disjoint sets of axes.
|
|
21
|
-
*/
|
|
22
|
-
deleteColumn(request: DeleteColumnFromColumnsRequest): Promise<DeleteColumnFromColumnsResponse>;
|
|
23
|
-
/** Retrieve single column spec */
|
|
24
|
-
getColumnSpec(columnId: PObjectId): Promise<PColumnSpec | null>;
|
|
25
|
-
/** Retrieve information about all columns currently added to the PFrame */
|
|
26
|
-
listColumns(): Promise<PColumnInfo[]>;
|
|
27
|
-
/** Calculates data for the table and returns an object to access it */
|
|
28
|
-
createTable(request: CreateTableRequestV4): PTableV7;
|
|
29
|
-
/** Calculate set of unique values for a specific axis for the filtered set of records */
|
|
30
|
-
getUniqueValues(request: UniqueValuesRequest, ops?: {
|
|
31
|
-
signal?: AbortSignal;
|
|
32
|
-
}): Promise<UniqueValuesResponse>;
|
|
33
|
-
}
|
|
34
|
-
/** Read interface exposed by PFrames library */
|
|
35
8
|
export interface PFrameReadAPIV11 {
|
|
36
9
|
/**
|
|
37
10
|
* Finds columns given filtering criteria on column name, annotations etc.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_read.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/api_read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"api_read.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/api_read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,gDAAgD;AAChD,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;SAOK;IACL,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEvE;;;OAGG;IACH,YAAY,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAEhG,kCAAkC;IAClC,aAAa,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAEhE,2EAA2E;IAC3E,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAEtC,uEAAuE;IACvE,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,oBAAoB,GAAG,QAAQ,CAAC;IAExE,yFAAyF;IACzF,eAAe,CACb,OAAO,EAAE,mBAAmB,EAC5B,GAAG,CAAC,EAAE;QACJ,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GACA,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAClC"}
|
|
@@ -1,31 +1,7 @@
|
|
|
1
1
|
import type { PFrameFactoryAPIV4 } from './api_factory';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PFrameReadAPIV11 } from './api_read';
|
|
3
3
|
import type { Logger } from './common';
|
|
4
4
|
import type { PFrameId } from './common';
|
|
5
|
-
export interface PFrameV12 extends PFrameFactoryAPIV4, PFrameReadAPIV10 {
|
|
6
|
-
}
|
|
7
|
-
export type PFrameOptions = {
|
|
8
|
-
/** Path to directory where PFrame can create temporary files */
|
|
9
|
-
spillPath: string;
|
|
10
|
-
/** Logger instance, no logging is performed when not provided */
|
|
11
|
-
logger?: Logger;
|
|
12
|
-
};
|
|
13
|
-
/** List of PFrame management functions exposed by PFrame module */
|
|
14
|
-
export interface PFrameFactoryV3 {
|
|
15
|
-
/**
|
|
16
|
-
* Create a new PFrame instance.
|
|
17
|
-
* @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
|
|
18
|
-
*/
|
|
19
|
-
createPFrame(options: PFrameOptions): PFrameV12;
|
|
20
|
-
/**
|
|
21
|
-
* Dump active allocations from all PFrames instances in pprof format.
|
|
22
|
-
* The result of this function should be saved as `profile.pb.gz`.
|
|
23
|
-
* Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
|
|
24
|
-
* to view the allocation flamechart.
|
|
25
|
-
* @warning This method will always reject on Windows!
|
|
26
|
-
*/
|
|
27
|
-
pprofDump: () => Promise<Uint8Array>;
|
|
28
|
-
}
|
|
29
5
|
export interface PFrameV13 extends PFrameFactoryAPIV4, PFrameReadAPIV11 {
|
|
30
6
|
}
|
|
31
7
|
export type PFrameOptionsV2 = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pframe.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/pframe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"pframe.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/pframe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,WAAW,SAAU,SAAQ,kBAAkB,EAAE,gBAAgB;CAAG;AAE1E,MAAM,MAAM,eAAe,GAAG;IAC5B,qCAAqC;IACrC,OAAO,EAAE,QAAQ,CAAC;IAClB,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,mEAAmE;AACnE,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,YAAY,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IAElD;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;CACtC"}
|
|
@@ -1,58 +1,5 @@
|
|
|
1
1
|
import type { PTableColumnId, PTableColumnSpec, PTableRecordFilter, PTableShape, PTableSorting, PTableVector, TableRange } from '@milaboratories/pl-model-common';
|
|
2
2
|
import type { PTableId } from './common';
|
|
3
|
-
/**
|
|
4
|
-
* Table view returned as a result of create table operation.
|
|
5
|
-
*
|
|
6
|
-
* PTable can be thought as having a composite primary key, consisting of axes,
|
|
7
|
-
* and a set of data columns derived from PColumn values.
|
|
8
|
-
* */
|
|
9
|
-
export interface PTableV7 extends Disposable {
|
|
10
|
-
/**
|
|
11
|
-
* Returns ordered array of table axes specs (primary key "columns" in SQL
|
|
12
|
-
* terms) and data column specs (regular "columns" in SQL terms).
|
|
13
|
-
*
|
|
14
|
-
* Data for a specific table column can be retrieved using unified indexing
|
|
15
|
-
* corresponding to elements in this array.
|
|
16
|
-
*
|
|
17
|
-
* Axes are always listed first.
|
|
18
|
-
* */
|
|
19
|
-
getSpec(): PTableColumnSpec[];
|
|
20
|
-
/** Transforms unified column identifiers into unified indices of columns. */
|
|
21
|
-
getColumnIndices(columnIds: PTableColumnId[]): number[];
|
|
22
|
-
/**
|
|
23
|
-
* Get PTable disk footprint in bytes
|
|
24
|
-
* Warning: This call materializes the join.
|
|
25
|
-
*/
|
|
26
|
-
getFootprint(ops?: {
|
|
27
|
-
signal?: AbortSignal;
|
|
28
|
-
}): Promise<number>;
|
|
29
|
-
/**
|
|
30
|
-
* Unified table shape
|
|
31
|
-
* Warning: This call materializes the join.
|
|
32
|
-
*/
|
|
33
|
-
getShape(ops?: {
|
|
34
|
-
signal?: AbortSignal;
|
|
35
|
-
}): Promise<PTableShape>;
|
|
36
|
-
/**
|
|
37
|
-
* Retrieve the data from the table. To retrieve only data required, it can be
|
|
38
|
-
* sliced both horizontally ({@link columnIndices}) and vertically
|
|
39
|
-
* ({@link range}).
|
|
40
|
-
* This call materializes the join.
|
|
41
|
-
*
|
|
42
|
-
* @param columnIndices unified indices of columns to be retrieved
|
|
43
|
-
* @param range optionally limit the range of records to retrieve
|
|
44
|
-
* */
|
|
45
|
-
getData(columnIndices: number[], ops?: {
|
|
46
|
-
range?: TableRange;
|
|
47
|
-
signal?: AbortSignal;
|
|
48
|
-
}): Promise<PTableVector[]>;
|
|
49
|
-
/** Filters the table and returns new PTable instance */
|
|
50
|
-
filter(request: PTableRecordFilter[]): PTableV7;
|
|
51
|
-
/** Sorts the table and returns new PTable instance. */
|
|
52
|
-
sort(request: PTableSorting[]): PTableV7;
|
|
53
|
-
/** Deallocates all underlying resources */
|
|
54
|
-
dispose(): void;
|
|
55
|
-
}
|
|
56
3
|
/**
|
|
57
4
|
* Table view returned as a result of create table operation.
|
|
58
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,UAAU,EACX,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,UAAU,EACX,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;KAKK;AACL,MAAM,WAAW,QAAS,SAAQ,UAAU;IAC1C;;;;;;;;SAQK;IACL,OAAO,IAAI,gBAAgB,EAAE,CAAC;IAE9B,6EAA6E;IAC7E,gBAAgB,CAAC,SAAS,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,CAAC;IAExD;;;OAGG;IACH,YAAY,CAAC,GAAG,CAAC,EAAE;QACjB,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE;QACb,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEzB;;;;;;;;SAQK;IACL,OAAO,CACL,aAAa,EAAE,MAAM,EAAE,EACvB,GAAG,CAAC,EAAE;QACJ,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GACA,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAE3B,wDAAwD;IACxD,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,kBAAkB,EAAE,GAAG,QAAQ,CAAC;IAEnE,uDAAuD;IACvD,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,QAAQ,CAAC;IAE5D,2CAA2C;IAC3C,OAAO,IAAI,IAAI,CAAC;CACjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-middle-layer",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.44",
|
|
4
4
|
"description": "Common model between middle layer and non-block UI code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"remeda": "^2.28.0",
|
|
21
21
|
"zod": "~3.23.8",
|
|
22
22
|
"utility-types": "^3.11.0",
|
|
23
|
-
"@milaboratories/pl-model-common": "1.21.
|
|
23
|
+
"@milaboratories/pl-model-common": "1.21.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"eslint": "^9.25.1",
|
|
27
27
|
"typescript": "~5.6.3",
|
|
28
28
|
"@types/node": "~24.5.2",
|
|
29
|
-
"@milaboratories/build-configs": "1.0.8",
|
|
30
29
|
"@platforma-sdk/eslint-config": "1.1.0",
|
|
31
30
|
"@milaboratories/ts-configs": "1.0.6",
|
|
31
|
+
"@milaboratories/build-configs": "1.0.8",
|
|
32
32
|
"@milaboratories/ts-builder": "1.0.5"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
@@ -8,49 +8,9 @@ import type {
|
|
|
8
8
|
UniqueValuesResponse,
|
|
9
9
|
} from '@milaboratories/pl-model-common';
|
|
10
10
|
import type { CreateTableRequestV4 } from './create_table';
|
|
11
|
-
import type {
|
|
11
|
+
import type { PTableV8 } from './table';
|
|
12
12
|
import type { PTableId } from './common';
|
|
13
13
|
|
|
14
|
-
// REMOVE AFTER MIGRATION BEGIN...
|
|
15
|
-
|
|
16
|
-
/** Read interface exposed by PFrames library */
|
|
17
|
-
export interface PFrameReadAPIV10 {
|
|
18
|
-
/**
|
|
19
|
-
* Finds columns given filtering criteria on column name, annotations etc.
|
|
20
|
-
* and a set of qualified axes specs to find only columns with compatible
|
|
21
|
-
* axes spec.
|
|
22
|
-
*
|
|
23
|
-
* Only column specs are used, this method will work even for columns
|
|
24
|
-
* with no assigned data.
|
|
25
|
-
* */
|
|
26
|
-
findColumns(request: FindColumnsRequest): Promise<FindColumnsResponse>;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Construct new axes integration with some entry removed but integration qualificaitons preserved.
|
|
30
|
-
* Removes more then one entry in case the removal will create several disjoint sets of axes.
|
|
31
|
-
*/
|
|
32
|
-
deleteColumn(request: DeleteColumnFromColumnsRequest): Promise<DeleteColumnFromColumnsResponse>;
|
|
33
|
-
|
|
34
|
-
/** Retrieve single column spec */
|
|
35
|
-
getColumnSpec(columnId: PObjectId): Promise<PColumnSpec | null>;
|
|
36
|
-
|
|
37
|
-
/** Retrieve information about all columns currently added to the PFrame */
|
|
38
|
-
listColumns(): Promise<PColumnInfo[]>;
|
|
39
|
-
|
|
40
|
-
/** Calculates data for the table and returns an object to access it */
|
|
41
|
-
createTable(request: CreateTableRequestV4): PTableV7;
|
|
42
|
-
|
|
43
|
-
/** Calculate set of unique values for a specific axis for the filtered set of records */
|
|
44
|
-
getUniqueValues(
|
|
45
|
-
request: UniqueValuesRequest,
|
|
46
|
-
ops?: {
|
|
47
|
-
signal?: AbortSignal;
|
|
48
|
-
}
|
|
49
|
-
): Promise<UniqueValuesResponse>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// ...REMOVE AFTER MIGRATION END
|
|
53
|
-
|
|
54
14
|
/** Read interface exposed by PFrames library */
|
|
55
15
|
export interface PFrameReadAPIV11 {
|
|
56
16
|
/**
|
|
@@ -1,39 +1,8 @@
|
|
|
1
1
|
import type { PFrameFactoryAPIV4 } from './api_factory';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PFrameReadAPIV11 } from './api_read';
|
|
3
3
|
import type { Logger } from './common';
|
|
4
4
|
import type { PFrameId } from './common';
|
|
5
5
|
|
|
6
|
-
// REMOVE AFTER MIGRATION BEGIN...
|
|
7
|
-
|
|
8
|
-
export interface PFrameV12 extends PFrameFactoryAPIV4, PFrameReadAPIV10 {}
|
|
9
|
-
|
|
10
|
-
export type PFrameOptions = {
|
|
11
|
-
/** Path to directory where PFrame can create temporary files */
|
|
12
|
-
spillPath: string;
|
|
13
|
-
/** Logger instance, no logging is performed when not provided */
|
|
14
|
-
logger?: Logger;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** List of PFrame management functions exposed by PFrame module */
|
|
18
|
-
export interface PFrameFactoryV3 {
|
|
19
|
-
/**
|
|
20
|
-
* Create a new PFrame instance.
|
|
21
|
-
* @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
|
|
22
|
-
*/
|
|
23
|
-
createPFrame(options: PFrameOptions): PFrameV12;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Dump active allocations from all PFrames instances in pprof format.
|
|
27
|
-
* The result of this function should be saved as `profile.pb.gz`.
|
|
28
|
-
* Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
|
|
29
|
-
* to view the allocation flamechart.
|
|
30
|
-
* @warning This method will always reject on Windows!
|
|
31
|
-
*/
|
|
32
|
-
pprofDump: () => Promise<Uint8Array>;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
// ...REMOVE AFTER MIGRATION END
|
|
36
|
-
|
|
37
6
|
export interface PFrameV13 extends PFrameFactoryAPIV4, PFrameReadAPIV11 {}
|
|
38
7
|
|
|
39
8
|
export type PFrameOptionsV2 = {
|
|
@@ -9,74 +9,6 @@ import type {
|
|
|
9
9
|
} from '@milaboratories/pl-model-common';
|
|
10
10
|
import type { PTableId } from './common';
|
|
11
11
|
|
|
12
|
-
// REMOVE AFTER MIGRATION BEGIN...
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Table view returned as a result of create table operation.
|
|
16
|
-
*
|
|
17
|
-
* PTable can be thought as having a composite primary key, consisting of axes,
|
|
18
|
-
* and a set of data columns derived from PColumn values.
|
|
19
|
-
* */
|
|
20
|
-
export interface PTableV7 extends Disposable {
|
|
21
|
-
/**
|
|
22
|
-
* Returns ordered array of table axes specs (primary key "columns" in SQL
|
|
23
|
-
* terms) and data column specs (regular "columns" in SQL terms).
|
|
24
|
-
*
|
|
25
|
-
* Data for a specific table column can be retrieved using unified indexing
|
|
26
|
-
* corresponding to elements in this array.
|
|
27
|
-
*
|
|
28
|
-
* Axes are always listed first.
|
|
29
|
-
* */
|
|
30
|
-
getSpec(): PTableColumnSpec[];
|
|
31
|
-
|
|
32
|
-
/** Transforms unified column identifiers into unified indices of columns. */
|
|
33
|
-
getColumnIndices(columnIds: PTableColumnId[]): number[];
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Get PTable disk footprint in bytes
|
|
37
|
-
* Warning: This call materializes the join.
|
|
38
|
-
*/
|
|
39
|
-
getFootprint(ops?: {
|
|
40
|
-
signal?: AbortSignal;
|
|
41
|
-
}): Promise<number>;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Unified table shape
|
|
45
|
-
* Warning: This call materializes the join.
|
|
46
|
-
*/
|
|
47
|
-
getShape(ops?: {
|
|
48
|
-
signal?: AbortSignal;
|
|
49
|
-
}): Promise<PTableShape>;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Retrieve the data from the table. To retrieve only data required, it can be
|
|
53
|
-
* sliced both horizontally ({@link columnIndices}) and vertically
|
|
54
|
-
* ({@link range}).
|
|
55
|
-
* This call materializes the join.
|
|
56
|
-
*
|
|
57
|
-
* @param columnIndices unified indices of columns to be retrieved
|
|
58
|
-
* @param range optionally limit the range of records to retrieve
|
|
59
|
-
* */
|
|
60
|
-
getData(
|
|
61
|
-
columnIndices: number[],
|
|
62
|
-
ops?: {
|
|
63
|
-
range?: TableRange;
|
|
64
|
-
signal?: AbortSignal;
|
|
65
|
-
},
|
|
66
|
-
): Promise<PTableVector[]>;
|
|
67
|
-
|
|
68
|
-
/** Filters the table and returns new PTable instance */
|
|
69
|
-
filter(request: PTableRecordFilter[]): PTableV7;
|
|
70
|
-
|
|
71
|
-
/** Sorts the table and returns new PTable instance. */
|
|
72
|
-
sort(request: PTableSorting[]): PTableV7;
|
|
73
|
-
|
|
74
|
-
/** Deallocates all underlying resources */
|
|
75
|
-
dispose(): void;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// ...REMOVE AFTER MIGRATION END
|
|
79
|
-
|
|
80
12
|
/**
|
|
81
13
|
* Table view returned as a result of create table operation.
|
|
82
14
|
*
|