@terascope/data-mate / column/utils
column/utils
Functions
dynamicMapVectorEach()
dynamicMapVectorEach<
T
,R
>(vector
,builder
,dynamicFn
):Vector
<R
>
Type parameters
Type parameter | Value |
---|---|
T | - |
R | T |
Parameters
Parameter | Type |
---|---|
vector | Vector <T > | ListVector <T > |
builder | Builder <R > |
dynamicFn | (index ) => (value , index ) => Maybe <R | readonly Maybe <R >[]> |
Returns
Vector
<R
>
Source
data-mate/src/column/utils.ts:60
dynamicMapVectorEachValue()
dynamicMapVectorEachValue<
T
,R
>(vector
,builder
,dynamicFn
):Vector
<R
>
Type parameters
Type parameter | Value |
---|---|
T | - |
R | T |
Parameters
Parameter | Type |
---|---|
vector | Vector <T > | ListVector <T > |
builder | Builder <R > |
dynamicFn | (index ) => (value , index ) => Maybe <R > |
Returns
Vector
<R
>
Source
data-mate/src/column/utils.ts:77
getFieldTypesFromFieldConfigAndChildConfig()
getFieldTypesFromFieldConfigAndChildConfig(
config
,childConfig
): readonlyFieldType
[]
This was created for validating the accepts
Parameters
Parameter | Type |
---|---|
config | Readonly <DataTypeFieldConfig > |
childConfig | undefined | DataTypeFields | ReadonlyDataTypeFields |
Returns
readonly FieldType
[]
Source
data-mate/src/column/utils.ts:130
getVectorId()
getVectorId(
vector
):string
Parameters
Parameter | Type |
---|---|
vector | Vector <any > |
Returns
string
Source
data-mate/src/column/utils.ts:13
mapVectorEach()
mapVectorEach<
T
,R
>(vector
,builder
,fn
):Vector
<R
>
Type parameters
Type parameter | Value |
---|---|
T | - |
R | T |
Parameters
Parameter | Type |
---|---|
vector | Vector <T > | ListVector <T > |
builder | Builder <R > |
fn | (value , index ) => Maybe <R | readonly Maybe <R >[]> |
Returns
Vector
<R
>
Source
data-mate/src/column/utils.ts:21
mapVectorEachValue()
mapVectorEachValue<
T
,R
>(vector
,builder
,fn
):Vector
<R
>
Type parameters
Type parameter | Value |
---|---|
T | - |
R | T |
Parameters
Parameter | Type |
---|---|
vector | Vector <T > | ListVector <T > |
builder | Builder <R > |
fn | (value , index ) => Maybe <R > |
Returns
Vector
<R
>
Source
data-mate/src/column/utils.ts:36
validateAccepts()
validateAccepts(
accepts
,types
):Error
|undefined
Parameters
Parameter | Type |
---|---|
accepts | readonly FieldType [] |
types | readonly FieldType [] |
Returns
Error
| undefined
Source
data-mate/src/column/utils.ts:141
validateFieldTransformArgs()
validateFieldTransformArgs<
A
>(schema
?,requiredArgs
?,args
?):A
Type parameters
Type parameter |
---|
A extends Record <string , any > |
Parameters
Parameter | Type |
---|---|
schema ? | DataTypeFields |
requiredArgs ? | string [] |
args ? | Partial <A > |
Returns
A