Skip to main content

@terascope/data-mate / column/aggregations

column/aggregations

Enumerations

EnumerationDescription
KeyAggregation-
ValueAggregation-

Interfaces

InterfaceDescription
FieldAgg-

Type Aliases

KeyAggFn()

KeyAggFn = (index) => object

Defined in: data-mate/src/column/aggregations.ts:210

Parameters

ParameterType
indexnumber

Returns

object

key

key: string | undefined

value

value: unknown


MakeKeyAggFn()

MakeKeyAggFn = (col) => KeyAggFn

Defined in: data-mate/src/column/aggregations.ts:214

Parameters

ParameterType
colVector<unknown>

Returns

KeyAggFn


MakeValueAgg()

MakeValueAgg = (vector) => FieldAgg

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

Parameters

ParameterType
vectorVector<unknown>

Returns

FieldAgg

Variables

keyAggMap

const keyAggMap: Record<KeyAggregation, MakeKeyAggFn>

Defined in: data-mate/src/column/aggregations.ts:216


keyAggregationDescriptions

const keyAggregationDescriptions: object

Defined in: data-mate/src/column/aggregations.ts:223

Type Declaration

daily

daily: string = 'Group the data in daily buckets'

hourly

hourly: string = 'Group the data in hourly buckets'

monthly

monthly: string = 'Group the data in monthly buckets'

yearly

yearly: string = 'Group the data in yearly buckets'


valueAggMap

const valueAggMap: Record<ValueAggregation, MakeValueAgg>

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


valueAggregationDescriptions

const valueAggregationDescriptions: object

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

Type Declaration

avg

avg: string = 'Calculate the average value in a column'

count

count: string = 'Count all of the values in a column'

max

max: string = 'Find the maximum value in a column'

min

min: string = 'Find the minimum value in a column'

sum

sum: string = 'Add all of the values in a column together'

Functions

makeUniqueKeyAgg()

makeUniqueKeyAgg(vector, options?): KeyAggFn

Defined in: data-mate/src/column/aggregations.ts:244

Parameters

ParameterType
vectorVector<any>
options?SerializeOptions

Returns

KeyAggFn


runVectorAggregation()

runVectorAggregation<V>(vector, valueAgg): V

Defined in: data-mate/src/column/aggregations.ts:54

Type Parameters

Type Parameter
V

Parameters

ParameterType
vectorVector<any>
valueAggValueAggregation

Returns

V