@terascope/data-mate / column/aggregations
column/aggregations
Index
Enumerations
Enumeration | Description |
---|---|
KeyAggregation | - |
ValueAggregation | - |
Interfaces
Interface | Description |
---|---|
FieldAgg | - |
Type Aliases
KeyAggFn()
KeyAggFn: (
index
) =>object
Parameters
Parameter | Type |
---|---|
index | number |
Returns
object
key
key:
string
|undefined
value
value:
unknown
Source
data-mate/src/column/aggregations.ts:202
MakeKeyAggFn()
MakeKeyAggFn: (
col
) =>KeyAggFn
Parameters
Parameter | Type |
---|---|
col | Vector <unknown > |
Returns
Source
data-mate/src/column/aggregations.ts:206
MakeValueAgg()
MakeValueAgg: (
vector
) =>FieldAgg
Parameters
Parameter | Type |
---|---|
vector | Vector <unknown > |
Returns
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
Parameter | Type |
---|---|
vector | Vector <any > |
options ? | SerializeOptions |
Returns
Source
data-mate/src/column/aggregations.ts:229
runVectorAggregation()
runVectorAggregation<
V
>(vector
,valueAgg
):V
Type parameters
Type parameter |
---|
V |
Parameters
Parameter | Type |
---|---|
vector | Vector <any > |
valueAgg | ValueAggregation |
Returns
V