Interface RowKeyJoin
- All Known Implementing Classes:
HashJoinBatch
,RowKeyJoinBatch
public interface RowKeyJoin
Interface for a row key join
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Enum for RowKeyJoin internal state. -
Method Summary
Modifier and TypeMethodDescriptionGet the current BatchState (this is useful when performing row key join)Get the current RowKeyJoinState.boolean
Is the next batch of row keys ready to be returnedorg.apache.commons.lang3.tuple.Pair<ValueVector,
Integer> Get the next batch of row keysvoid
setBatchState
(AbstractRecordBatch.BatchState newState) Set the BatchState (this is useful when performing row key join)void
setRowKeyJoinState
(RowKeyJoin.RowKeyJoinState newState) Set the RowKeyJoinState (this is useful for maintaining state for row key join algorithm)
-
Method Details
-
hasRowKeyBatch
boolean hasRowKeyBatch()Is the next batch of row keys ready to be returned- Returns:
- True if ready, false if not
-
nextRowKeyBatch
org.apache.commons.lang3.tuple.Pair<ValueVector,Integer> nextRowKeyBatch()Get the next batch of row keys- Returns:
- a Pair whose left element is the ValueVector containing the row keys, right element is the number of row keys in this batch
-
getBatchState
AbstractRecordBatch.BatchState getBatchState()Get the current BatchState (this is useful when performing row key join) -
setBatchState
Set the BatchState (this is useful when performing row key join)- Parameters:
newState
-
-
setRowKeyJoinState
Set the RowKeyJoinState (this is useful for maintaining state for row key join algorithm)- Parameters:
newState
-
-
getRowKeyJoinState
RowKeyJoin.RowKeyJoinState getRowKeyJoinState()Get the current RowKeyJoinState.
-