@milaboratories/pl-model-middle-layer 1.25.0 → 1.26.0
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/block_meta/block_description.d.ts +304 -304
- package/dist/block_meta/block_id.d.ts +4 -4
- package/dist/block_meta/block_manifest.d.ts +986 -986
- package/dist/block_meta/block_meta.d.ts +108 -108
- package/dist/block_meta/content_types.d.ts +18 -18
- package/dist/block_registry/block_pack_spec.d.ts +24 -24
- package/dist/block_registry/overview.d.ts +1740 -1740
- package/dist/block_registry/registry_spec.d.ts +44 -44
- package/dist/pframe/internal_api/api_factory.cjs.map +1 -1
- package/dist/pframe/internal_api/api_factory.d.ts +2 -20
- package/dist/pframe/internal_api/api_factory.d.ts.map +1 -1
- package/dist/pframe/internal_api/api_factory.js.map +1 -1
- package/dist/pframe/internal_api/api_read.d.ts +3 -38
- package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
- package/dist/pframe/internal_api/api_wasm.d.ts +1 -1
- package/dist/pframe/internal_api/index.d.ts +8 -8
- package/dist/pframe/internal_api/pframe.d.ts +3 -20
- package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
- package/dist/pframe/internal_api/table.d.ts +2 -56
- package/dist/pframe/internal_api/table.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/pframe/internal_api/api_factory.ts +0 -27
- package/src/pframe/internal_api/api_read.ts +1 -56
- package/src/pframe/internal_api/pframe.ts +2 -22
- package/src/pframe/internal_api/table.ts +1 -70
|
@@ -1,67 +1,12 @@
|
|
|
1
|
-
import type { FindColumnsRequest, FindColumnsResponse } from "./find_columns";
|
|
2
1
|
import type {
|
|
3
|
-
DeleteColumnFromColumnsRequest,
|
|
4
|
-
DeleteColumnFromColumnsResponse,
|
|
5
|
-
} from "./delete_column";
|
|
6
|
-
import type {
|
|
7
|
-
PColumnInfo,
|
|
8
|
-
PColumnSpec,
|
|
9
2
|
PObjectId,
|
|
10
|
-
UniqueValuesRequest,
|
|
11
3
|
UniqueValuesResponse,
|
|
12
4
|
DataQuery,
|
|
13
5
|
DataQueryBooleanExpression,
|
|
14
|
-
PTableColumnSpec,
|
|
15
6
|
} from "@milaboratories/pl-model-common";
|
|
16
|
-
import type {
|
|
17
|
-
import type { PTableV8, PTableV9 } from "./table";
|
|
7
|
+
import type { PTableV9 } from "./table";
|
|
18
8
|
import type { PTableId } from "./common";
|
|
19
9
|
|
|
20
|
-
/** Read interface exposed by PFrames library */
|
|
21
|
-
export interface PFrameReadAPIV11 {
|
|
22
|
-
/**
|
|
23
|
-
* Finds columns given filtering criteria on column name, annotations etc.
|
|
24
|
-
* and a set of qualified axes specs to find only columns with compatible
|
|
25
|
-
* axes spec.
|
|
26
|
-
*
|
|
27
|
-
* Only column specs are used, this method will work even for columns
|
|
28
|
-
* with no assigned data.
|
|
29
|
-
* */
|
|
30
|
-
findColumns(request: FindColumnsRequest): Promise<FindColumnsResponse>;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Construct new axes integration with some entry removed but integration qualificaitons preserved.
|
|
34
|
-
* Removes more then one entry in case the removal will create several disjoint sets of axes.
|
|
35
|
-
*/
|
|
36
|
-
deleteColumn(request: DeleteColumnFromColumnsRequest): Promise<DeleteColumnFromColumnsResponse>;
|
|
37
|
-
|
|
38
|
-
/** Retrieve single column spec */
|
|
39
|
-
getColumnSpec(columnId: PObjectId): Promise<PColumnSpec | null>;
|
|
40
|
-
|
|
41
|
-
/** Retrieve information about all columns currently added to the PFrame */
|
|
42
|
-
listColumns(): Promise<PColumnInfo[]>;
|
|
43
|
-
|
|
44
|
-
/** Calculates data for the table and returns an object to access it */
|
|
45
|
-
createTable(tableId: PTableId, request: CreateTableRequestV4): PTableV8;
|
|
46
|
-
|
|
47
|
-
/** Creates table from data query and returns an object to access it */
|
|
48
|
-
createTableV2(
|
|
49
|
-
tableId: PTableId,
|
|
50
|
-
request: {
|
|
51
|
-
tableSpec: PTableColumnSpec[];
|
|
52
|
-
dataQuery: DataQuery;
|
|
53
|
-
},
|
|
54
|
-
): PTableV8;
|
|
55
|
-
|
|
56
|
-
/** Calculate set of unique values for a specific axis for the filtered set of records */
|
|
57
|
-
getUniqueValues(
|
|
58
|
-
request: UniqueValuesRequest,
|
|
59
|
-
ops?: {
|
|
60
|
-
signal?: AbortSignal;
|
|
61
|
-
},
|
|
62
|
-
): Promise<UniqueValuesResponse>;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
10
|
/**
|
|
66
11
|
* V2 unique-values request. Axis and filter references are
|
|
67
12
|
* pre-resolved to numeric indices; no selector ids cross the API
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PFrameFactoryAPIV5 } from "./api_factory";
|
|
2
|
+
import type { PFrameReadAPIV12 } from "./api_read";
|
|
3
3
|
import type { Logger } from "./common";
|
|
4
4
|
import type { PFrameId } from "./common";
|
|
5
5
|
|
|
6
|
-
export interface PFrameV13 extends PFrameFactoryAPIV4, PFrameReadAPIV11 {}
|
|
7
|
-
|
|
8
6
|
/** Full PFrame surface — factory operations plus data-side reads. */
|
|
9
7
|
export interface PFrameV14 extends PFrameFactoryAPIV5, PFrameReadAPIV12 {}
|
|
10
8
|
|
|
@@ -17,24 +15,6 @@ export type PFrameOptionsV2 = {
|
|
|
17
15
|
logger?: Logger;
|
|
18
16
|
};
|
|
19
17
|
|
|
20
|
-
/** List of PFrame management functions exposed by PFrame module */
|
|
21
|
-
export interface PFrameFactoryV4 {
|
|
22
|
-
/**
|
|
23
|
-
* Create a new PFrame instance.
|
|
24
|
-
* @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
|
|
25
|
-
*/
|
|
26
|
-
createPFrame(options: PFrameOptionsV2): PFrameV13;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Dump active allocations from all PFrames instances in pprof format.
|
|
30
|
-
* The result of this function should be saved as `profile.pb.gz`.
|
|
31
|
-
* Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
|
|
32
|
-
* to view the allocation flamechart.
|
|
33
|
-
* @warning This method will always reject on Windows!
|
|
34
|
-
*/
|
|
35
|
-
pprofDump: () => Promise<Uint8Array>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
18
|
/** PFrame management functions exposed by the PFrame module. */
|
|
39
19
|
export interface PFrameFactoryV5 {
|
|
40
20
|
/**
|
|
@@ -1,73 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
PTableColumnId,
|
|
3
|
-
PTableColumnSpec,
|
|
4
|
-
PTableRecordFilter,
|
|
5
|
-
PTableShape,
|
|
6
|
-
PTableSorting,
|
|
7
|
-
PTableVector,
|
|
8
|
-
TableRange,
|
|
9
|
-
} from "@milaboratories/pl-model-common";
|
|
10
|
-
import type { PTableId } from "./common";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Table view returned as a result of create table operation.
|
|
14
|
-
*
|
|
15
|
-
* PTable can be thought as having a composite primary key, consisting of axes,
|
|
16
|
-
* and a set of data columns derived from PColumn values.
|
|
17
|
-
* */
|
|
18
|
-
export interface PTableV8 extends Disposable {
|
|
19
|
-
/**
|
|
20
|
-
* Returns ordered array of table axes specs (primary key "columns" in SQL
|
|
21
|
-
* terms) and data column specs (regular "columns" in SQL terms).
|
|
22
|
-
*
|
|
23
|
-
* Data for a specific table column can be retrieved using unified indexing
|
|
24
|
-
* corresponding to elements in this array.
|
|
25
|
-
*
|
|
26
|
-
* Axes are always listed first.
|
|
27
|
-
* */
|
|
28
|
-
getSpec(): PTableColumnSpec[];
|
|
29
|
-
|
|
30
|
-
/** Transforms unified column identifiers into unified indices of columns. */
|
|
31
|
-
getColumnIndices(columnIds: PTableColumnId[]): number[];
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Get PTable disk footprint in bytes
|
|
35
|
-
* Warning: This call materializes the join.
|
|
36
|
-
*/
|
|
37
|
-
getFootprint(ops?: { signal?: AbortSignal }): Promise<number>;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Unified table shape
|
|
41
|
-
* Warning: This call materializes the join.
|
|
42
|
-
*/
|
|
43
|
-
getShape(ops?: { signal?: AbortSignal }): Promise<PTableShape>;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Retrieve the data from the table. To retrieve only data required, it can be
|
|
47
|
-
* sliced both horizontally ({@link columnIndices}) and vertically
|
|
48
|
-
* ({@link range}).
|
|
49
|
-
* This call materializes the join.
|
|
50
|
-
*
|
|
51
|
-
* @param columnIndices unified indices of columns to be retrieved
|
|
52
|
-
* @param range optionally limit the range of records to retrieve
|
|
53
|
-
* */
|
|
54
|
-
getData(
|
|
55
|
-
columnIndices: number[],
|
|
56
|
-
ops?: {
|
|
57
|
-
range?: TableRange;
|
|
58
|
-
signal?: AbortSignal;
|
|
59
|
-
},
|
|
60
|
-
): Promise<PTableVector[]>;
|
|
61
|
-
|
|
62
|
-
/** Filters the table and returns new PTable instance */
|
|
63
|
-
filter(tableId: PTableId, request: PTableRecordFilter[]): PTableV8;
|
|
64
|
-
|
|
65
|
-
/** Sorts the table and returns new PTable instance. */
|
|
66
|
-
sort(tableId: PTableId, request: PTableSorting[]): PTableV8;
|
|
67
|
-
|
|
68
|
-
/** Deallocates all underlying resources */
|
|
69
|
-
dispose(): void;
|
|
70
|
-
}
|
|
1
|
+
import type { PTableShape, PTableVector, TableRange } from "@milaboratories/pl-model-common";
|
|
71
2
|
|
|
72
3
|
/**
|
|
73
4
|
* Table view returned by `createTable`.
|