public class RowKeyJoinBatch extends AbstractRecordBatch<RowKeyJoinPOP> implements RowKeyJoin
AbstractRecordBatch.BatchState
RowKeyJoin.RowKeyJoinState
RecordBatch.IterOutcome
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_BATCH_ROW_COUNT
Constructor and Description |
---|
RowKeyJoinBatch(RowKeyJoinPOP config,
FragmentContext context,
RecordBatch left,
RecordBatch right) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildSchema() |
protected void |
cancelIncoming() |
void |
close() |
void |
dump()
Perform dump of this batch's state to logs.
|
AbstractRecordBatch.BatchState |
getBatchState()
Get the current BatchState (this is useful when performing row key join)
|
int |
getRecordCount()
Get the number of records.
|
RowKeyJoin.RowKeyJoinState |
getRowKeyJoinState()
Get the current RowKeyJoinState.
|
SelectionVector2 |
getSelectionVector2() |
SelectionVector4 |
getSelectionVector4() |
boolean |
hasRowKeyBatch()
Is the next batch of row keys ready to be returned
|
RecordBatch.IterOutcome |
innerNext() |
org.apache.commons.lang3.tuple.Pair<ValueVector,Integer> |
nextRowKeyBatch()
Get the next batch of row keys
|
void |
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)
|
cancel, checkContinue, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSchema, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RowKeyJoinBatch(RowKeyJoinPOP config, FragmentContext context, RecordBatch left, RecordBatch right) throws OutOfMemoryException
OutOfMemoryException
public int getRecordCount()
VectorAccessible
getRecordCount
in interface VectorAccessible
public SelectionVector2 getSelectionVector2()
getSelectionVector2
in interface VectorAccessible
getSelectionVector2
in class AbstractRecordBatch<RowKeyJoinPOP>
public SelectionVector4 getSelectionVector4()
getSelectionVector4
in interface VectorAccessible
getSelectionVector4
in class AbstractRecordBatch<RowKeyJoinPOP>
protected void buildSchema()
buildSchema
in class AbstractRecordBatch<RowKeyJoinPOP>
public RecordBatch.IterOutcome innerNext()
innerNext
in class AbstractRecordBatch<RowKeyJoinPOP>
public boolean hasRowKeyBatch()
RowKeyJoin
hasRowKeyBatch
in interface RowKeyJoin
public org.apache.commons.lang3.tuple.Pair<ValueVector,Integer> nextRowKeyBatch()
RowKeyJoin
nextRowKeyBatch
in interface RowKeyJoin
public AbstractRecordBatch.BatchState getBatchState()
RowKeyJoin
getBatchState
in interface RowKeyJoin
public void setBatchState(AbstractRecordBatch.BatchState newState)
RowKeyJoin
setBatchState
in interface RowKeyJoin
public void setRowKeyJoinState(RowKeyJoin.RowKeyJoinState newState)
RowKeyJoin
setRowKeyJoinState
in interface RowKeyJoin
public RowKeyJoin.RowKeyJoinState getRowKeyJoinState()
RowKeyJoin
getRowKeyJoinState
in interface RowKeyJoin
protected void cancelIncoming()
cancelIncoming
in class AbstractRecordBatch<RowKeyJoinPOP>
public void close()
close
in interface AutoCloseable
close
in class AbstractRecordBatch<RowKeyJoinPOP>
public void dump()
RecordBatch
dump
in interface RecordBatch
Copyright © 1970 The Apache Software Foundation. All rights reserved.