Skip to main content

Interface: HashJoinIndex

Defined in: packages/core/src/indices/index.ts:67

Represents a secondary index on a data structure.

Extends

Properties

expressions

expressions: Calculation[]

Defined in: packages/core/src/indices/index.ts:32

The indexed expressions. More expressions result in multi-level index.

Inherited from

Index.expressions

Methods

allValues()

allValues(): Iterable<unknown[]>

Defined in: packages/core/src/indices/index.ts:69

Iterate over all stored values. Used in full outer joins.

Returns

Iterable<unknown[]>


createAccessor()

createAccessor(expressions): Calculation

Defined in: packages/core/src/indices/index.ts:52

Create an accessor for the given expressions.

Parameters

ParameterTypeDescription
expressionsIndexMatchInput[]expressions matched by match

Returns

Calculation

  • a calculation returning iterable of matched values

Inherited from

Index.createAccessor


match()

match(expressions, renameMap?): number[]

Defined in: packages/core/src/indices/index.ts:45

Can the index be used to match the given expressions?

Parameters

ParameterTypeDescription
expressionsIndexMatchInput[]expressions to match against the index
renameMap?RenameMaprename the expressions before matching

Returns

number[]

  • ordered indices of the expressions that can be matched, or null if none can be matched

Inherited from

Index.match


reindex()

reindex(values): void

Defined in: packages/core/src/indices/index.ts:38

Rebuild the index with new values.

Parameters

ParameterTypeDescription
valuesIterable<IndexFillInput>the new values to index

Returns

void

Inherited from

Index.reindex