public class MockLateralJoinBatch extends Object implements LateralContract, CloseableRecordBatch
RecordBatch.IterOutcomeMAX_BATCH_ROW_COUNT| Constructor and Description |
|---|
MockLateralJoinBatch(FragmentContext context,
OperatorContext oContext,
RecordBatch incoming) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Informs child operators that no more data is needed.
|
void |
close() |
void |
dump()
Perform dump of this batch's state to logs.
|
VectorContainer |
getContainer()
Return the internal vector container
|
FragmentContext |
getContext()
Gets the FragmentContext of the current query fragment.
|
RecordBatch |
getIncoming()
Get reference to left side incoming of
LateralJoinBatch. |
RecordBatch.IterOutcome |
getLeftOutcome()
Get the current outcome of left incoming batch.
|
VectorContainer |
getOutgoingContainer() |
int |
getRecordCount()
Get the number of records.
|
int |
getRecordIndex()
Get current record index in incoming to be processed.
|
List<ValueVector> |
getResultList() |
BatchSchema |
getSchema()
Gets the current schema of this record batch.
|
SelectionVector2 |
getSelectionVector2() |
SelectionVector4 |
getSelectionVector4() |
RecordBatch |
getUnnest() |
VectorWrapper<?> |
getValueAccessorById(Class<?> clazz,
int... ids) |
TypedFieldId |
getValueVectorId(SchemaPath path)
Gets the value vector type and ID for the given schema path.
|
WritableBatch |
getWritableBatch()
Gets a writable version of this batch.
|
boolean |
isCompleted() |
Iterator<VectorWrapper<?>> |
iterator() |
void |
moveToNextRecord() |
RecordBatch.IterOutcome |
next()
Updates the data in each Field reading interface for the next range of
records.
|
void |
reset() |
void |
setUnnest(RecordBatch unnest) |
void |
setUnnestLimit(int limit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic MockLateralJoinBatch(FragmentContext context, OperatorContext oContext, RecordBatch incoming)
public RecordBatch getIncoming()
LateralContractLateralJoinBatch.getIncoming in interface LateralContractRecordBatchpublic int getRecordIndex()
LateralContractgetRecordIndex in interface LateralContractpublic RecordBatch.IterOutcome getLeftOutcome()
LateralContractgetLeftOutcome in interface LateralContractpublic void moveToNextRecord()
public void reset()
public void setUnnest(RecordBatch unnest)
public void setUnnestLimit(int limit)
public RecordBatch getUnnest()
public RecordBatch.IterOutcome next()
RecordBatch
Once a RecordBatch's next() has returned RecordBatch.IterOutcome.NONE
or IterOutcome#STOP, the consumer should no longer call
next(). Behavior at this point is undefined and likely to
throw an exception.
See RecordBatch.IterOutcome for the protocol (possible sequences of return
values).
next in interface RecordBatchpublic WritableBatch getWritableBatch()
RecordBatchgetWritableBatch in interface RecordBatchpublic List<ValueVector> getResultList()
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic void dump()
RecordBatchdump in interface RecordBatchpublic int getRecordCount()
VectorAccessiblegetRecordCount in interface VectorAccessiblepublic SelectionVector2 getSelectionVector2()
getSelectionVector2 in interface VectorAccessiblepublic SelectionVector4 getSelectionVector4()
getSelectionVector4 in interface VectorAccessiblepublic FragmentContext getContext()
RecordBatchgetContext in interface RecordBatchpublic BatchSchema getSchema()
RecordBatch
May be called only when the most recent call to RecordBatch.next(), if any,
returned RecordBatch.IterOutcome.OK_NEW_SCHEMA or RecordBatch.IterOutcome.OK.
The schema changes when and only when RecordBatch.next() returns
RecordBatch.IterOutcome.OK_NEW_SCHEMA.
getSchema in interface RecordBatchgetSchema in interface VectorAccessiblepublic void cancel()
RecordBatch
The operator which triggers the cancel MUST send a NONE
status downstream, or throw an exception. It is not legal to
call next() on an operator after calling its
cancel() method.
cancel in interface RecordBatchpublic VectorContainer getOutgoingContainer()
getOutgoingContainer in interface RecordBatchpublic TypedFieldId getValueVectorId(SchemaPath path)
RecordBatchIterable<ValueVector>.getValueVectorId in interface RecordBatchgetValueVectorId in interface VectorAccessiblepath - The path where the vector should be located.public VectorWrapper<?> getValueAccessorById(Class<?> clazz, int... ids)
getValueAccessorById in interface RecordBatchgetValueAccessorById in interface VectorAccessiblepublic boolean isCompleted()
public VectorContainer getContainer()
RecordBatchgetContainer in interface RecordBatchpublic Iterator<VectorWrapper<?>> iterator()
iterator in interface Iterable<VectorWrapper<?>>Copyright © 2021 The Apache Software Foundation. All rights reserved.