-
Notifications
You must be signed in to change notification settings - Fork 13
/
interfaces.ts
47 lines (40 loc) · 895 Bytes
/
interfaces.ts
1
2
3
4
5
6
7
8
9
10
11
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
import {
DataTypeFieldConfig, Maybe,
ReadonlyDataTypeFields
} from '@terascope/types';
/**
* Column options
*/
export interface ColumnOptions<N extends (number|string|symbol) = string> {
name: N;
version?: number;
}
/**
* The metadata used when serializing a column
*/
export interface ColumnConfig<T> {
/**
* The name of the column
*/
readonly name: string;
/**
* DataFrame version
*/
readonly version?: number;
/**
* The size of the column
*/
readonly size: number;
/**
* The field type configuration for the column
*/
readonly config: Readonly<DataTypeFieldConfig>;
/**
* The child field configuration for Object and Tuple types
*/
readonly childConfig?: ReadonlyDataTypeFields;
/**
* The values associated to the column
*/
readonly values: readonly Maybe<T>[];
}