Skip to main content

@terascope/data-mate / vector/interfaces

vector/interfaces

Index

Enumerations

EnumerationDescription
VectorTypeThe Vector Type, this will change how the data is stored and read

Interfaces

InterfaceDescription
SerializeOptionsOptions used for JSON serialization

Type Aliases

DataBuckets<T>

DataBuckets<T>: ReadableData<T>[] | readonly ReadableData<T>[]

Type parameters

Type parameter
T

Source

data-mate/src/vector/interfaces.ts:3


DataValueTuple<T>

DataValueTuple<T>: readonly [readonly number[], T | null]

Type parameters

Type parameter
T

Source

data-mate/src/vector/interfaces.ts:64


OldData<T>

Internal

OldData<T>: Readonly<object>

A data type agnostic in-memory representation of the data for a Vector and potential indices/unique values.

This should be generated by the builder and should NOT be mutated one created.

Type declaration

indices

Internal

readonly indices: readonly (string | null)[]

The index represent the order of the values, the value is the hash of where to find the index

values

Internal

readonly values: ReadonlyMap<string | null, DataValueTuple<T>>

The unique values

Type parameters

Type parameter
T

Source

data-mate/src/vector/interfaces.ts:47