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