Class StaticHashedNaturalJoinStateManager
java.lang.Object
io.deephaven.engine.table.impl.StaticNaturalJoinStateManager
io.deephaven.engine.table.impl.naturaljoin.StaticHashedNaturalJoinStateManager
- Direct Known Subclasses:
StaticNaturalJoinStateManagerTypedBase
-
Field Summary
Fields inherited from class io.deephaven.engine.table.impl.StaticNaturalJoinStateManager
addOnly, DUPLICATE_RIGHT_VALUE, joinType, keySourcesForErrorMessages, NO_RIGHT_ENTRY_VALUE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStaticHashedNaturalJoinStateManager(ColumnSource<?>[] keySourcesForErrorMessages, NaturalJoinType joinType, boolean addOnly) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidbuildFromLeftSide(Table leftTable, ColumnSource<?>[] leftSources, IntegerArraySource leftHashSlots) abstract voidbuildFromRightSide(Table rightTable, ColumnSource<?>[] rightSources) protected WritableRowRedirectionbuildIndexedRowRedirection(QueryTable leftTable, RowSet indexTableRowSet, LongUnaryOperator groupPositionToRightSide, ColumnSource<RowSet> leftRowSets, JoinControl.RedirectionType redirectionType, boolean keySourcesFromLeftTable) abstract WritableRowRedirectionbuildIndexedRowRedirectionFromHashSlots(QueryTable leftTable, RowSet indexTableRowSet, IntegerArraySource leftHashSlots, ColumnSource<RowSet> indexRowSets, JoinControl.RedirectionType redirectionType) abstract WritableRowRedirectionbuildIndexedRowRedirectionFromRedirections(QueryTable leftTable, RowSet indexTableRowSet, LongArraySource leftRedirections, ColumnSource<RowSet> indexRowSets, JoinControl.RedirectionType redirectionType) abstract WritableRowRedirectionbuildRowRedirectionFromHashSlot(QueryTable leftTable, IntegerArraySource leftHashSlots, JoinControl.RedirectionType redirectionType) abstract WritableRowRedirectionbuildRowRedirectionFromRedirections(QueryTable leftTable, LongArraySource leftRedirections, JoinControl.RedirectionType redirectionType) abstract voiddecorateLeftSide(RowSet leftRowSet, ColumnSource<?>[] leftSources, LongArraySource leftRedirections) abstract voiddecorateLeftSideIndexed(RowSet indexTableRowSet, ColumnSource<?>[] indexSources, ColumnSource<RowSet> indexRowSets, LongArraySource leftRedirections) Probe the rows of a left data index table, storing one redirection per group.abstract voiddecorateWithRightSide(Table rightTable, ColumnSource<?>[] rightSources) voiderrorOnDuplicates(long size, LongUnaryOperator positionToRightSide, LongUnaryOperator positionToErrorRowKey) Throw the duplicate right key error for the first build position whose slot was marked as a duplicate.abstract voiderrorOnDuplicatesIndexed(IntegerArraySource leftHashSlots, RowSet indexTableRowSet) Throw the duplicate right key error after a build from a left data index; the error key sources are columns of the data index table.abstract voiderrorOnDuplicatesSingle(IntegerArraySource leftHashSlots, long size, RowSet rowSet) Throw the duplicate right key error after a build from the left table; the error key sources are columns of the left table.Methods inherited from class io.deephaven.engine.table.impl.StaticNaturalJoinStateManager
buildRowRedirection, checkExactMatch, extractKeyStringFromSourceTable
-
Constructor Details
-
StaticHashedNaturalJoinStateManager
protected StaticHashedNaturalJoinStateManager(ColumnSource<?>[] keySourcesForErrorMessages, NaturalJoinType joinType, boolean addOnly)
-
-
Method Details
-
buildFromLeftSide
public abstract void buildFromLeftSide(Table leftTable, ColumnSource<?>[] leftSources, IntegerArraySource leftHashSlots) -
buildFromRightSide
-
decorateLeftSide
public abstract void decorateLeftSide(RowSet leftRowSet, ColumnSource<?>[] leftSources, LongArraySource leftRedirections) - Specified by:
decorateLeftSidein classStaticNaturalJoinStateManager
-
decorateLeftSideIndexed
public abstract void decorateLeftSideIndexed(RowSet indexTableRowSet, ColumnSource<?>[] indexSources, ColumnSource<RowSet> indexRowSets, LongArraySource leftRedirections) Probe the rows of a left data index table, storing one redirection per group. A duplicate right key error names the key of the offending group's first left row, sincekeySourcesForErrorMessagesare columns of the left table rather than of the data index table.- Parameters:
indexTableRowSet- the data index table's row setindexSources- the data index table's key columnsindexRowSets- the data index table's row set column, mapping each group to its left rowsleftRedirections- receives the right row key (orRowSequence.NULL_ROW_KEY) for each group, by position
-
decorateWithRightSide
-
buildRowRedirectionFromHashSlot
public abstract WritableRowRedirection buildRowRedirectionFromHashSlot(QueryTable leftTable, IntegerArraySource leftHashSlots, JoinControl.RedirectionType redirectionType) -
buildRowRedirectionFromRedirections
public abstract WritableRowRedirection buildRowRedirectionFromRedirections(QueryTable leftTable, LongArraySource leftRedirections, JoinControl.RedirectionType redirectionType) -
buildIndexedRowRedirectionFromRedirections
public abstract WritableRowRedirection buildIndexedRowRedirectionFromRedirections(QueryTable leftTable, RowSet indexTableRowSet, LongArraySource leftRedirections, ColumnSource<RowSet> indexRowSets, JoinControl.RedirectionType redirectionType) -
buildIndexedRowRedirectionFromHashSlots
public abstract WritableRowRedirection buildIndexedRowRedirectionFromHashSlots(QueryTable leftTable, RowSet indexTableRowSet, IntegerArraySource leftHashSlots, ColumnSource<RowSet> indexRowSets, JoinControl.RedirectionType redirectionType) -
buildIndexedRowRedirection
protected WritableRowRedirection buildIndexedRowRedirection(QueryTable leftTable, RowSet indexTableRowSet, LongUnaryOperator groupPositionToRightSide, ColumnSource<RowSet> leftRowSets, JoinControl.RedirectionType redirectionType, boolean keySourcesFromLeftTable) - Parameters:
keySourcesFromLeftTable- whetherkeySourcesForErrorMessagesare columns of the left table (as when building from redirections) rather than columns of the data index table (as when building from hash slots); determines which keyspace error row keys are produced in
-
errorOnDuplicates
public void errorOnDuplicates(long size, LongUnaryOperator positionToRightSide, LongUnaryOperator positionToErrorRowKey) Throw the duplicate right key error for the first build position whose slot was marked as a duplicate.- Parameters:
size- the number of build positionspositionToRightSide- maps a build position to its slot's right statepositionToErrorRowKey- maps a build position to a row key in the keyspace ofkeySourcesForErrorMessages(the left table when built from the left input, the data index table when built from a left data index)
-
errorOnDuplicatesIndexed
public abstract void errorOnDuplicatesIndexed(IntegerArraySource leftHashSlots, RowSet indexTableRowSet) Throw the duplicate right key error after a build from a left data index; the error key sources are columns of the data index table.- Parameters:
leftHashSlots- the hash slot of each data index table row, by positionindexTableRowSet- the data index table's row set
-
errorOnDuplicatesSingle
public abstract void errorOnDuplicatesSingle(IntegerArraySource leftHashSlots, long size, RowSet rowSet) Throw the duplicate right key error after a build from the left table; the error key sources are columns of the left table.- Parameters:
leftHashSlots- the hash slot of each left row, by positionsize- the number of left rowsrowSet- the left table's row set
-