Skip to main content

@terascope/data-mate / column/aggregations

column/aggregations

Index

Enumerations

EnumerationDescription
KeyAggregation-
ValueAggregation-

Interfaces

InterfaceDescription
FieldAgg-

Type Aliases

KeyAggFn()

KeyAggFn: (index) => object

Parameters

ParameterType
indexnumber

Returns

object

key

key: string | undefined

value

value: unknown

Source

data-mate/src/column/aggregations.ts:202


MakeKeyAggFn()

MakeKeyAggFn: (col) => KeyAggFn

Parameters

ParameterType
colVector<unknown>

Returns

KeyAggFn

Source

data-mate/src/column/aggregations.ts:206


MakeValueAgg()

MakeValueAgg: (vector) => FieldAgg

Parameters

ParameterType
vectorVector<unknown>

Returns

FieldAgg

Source

data-mate/src/column/aggregations.ts:36

Variables

keyAggMap

const keyAggMap: Record<KeyAggregation, MakeKeyAggFn>

Source

data-mate/src/column/aggregations.ts:208


valueAggMap

const valueAggMap: Record<ValueAggregation, MakeValueAgg>

Source

data-mate/src/column/aggregations.ts:38

Functions

makeUniqueKeyAgg()

makeUniqueKeyAgg(vector, options?): KeyAggFn

Parameters

ParameterType
vectorVector<any>
options?SerializeOptions

Returns

KeyAggFn

Source

data-mate/src/column/aggregations.ts:229


runVectorAggregation()

runVectorAggregation<V>(vector, valueAgg): V

Type parameters

Type parameter
V

Parameters

ParameterType
vectorVector<any>
valueAggValueAggregation

Returns

V

Source

data-mate/src/column/aggregations.ts:46