public class LimitRecordBatch extends AbstractSingleRecordBatch<Limit>
AbstractRecordBatch.BatchState
RecordBatch.IterOutcome
incoming
callBack
batchStatsContext, container, context, oContext, popConfig, state, stats, unionTypeEnabled
MAX_BATCH_ROW_COUNT
Constructor and Description |
---|
LimitRecordBatch(Limit popConfig,
FragmentContext context,
RecordBatch incoming) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected RecordBatch.IterOutcome |
doWork() |
void |
dump()
Perform dump of this batch's state to logs.
|
protected RecordBatch.IterOutcome |
getFinalOutcome(boolean hasRemainder)
Gets the outcome to return from super implementation and then in case of
EMIT outcome it refreshes the state of operator.
|
int |
getRecordCount()
Get the number of records.
|
SelectionVector2 |
getSelectionVector2() |
RecordBatch.IterOutcome |
innerNext() |
protected boolean |
setupNewSchema() |
getIncoming
cancelIncoming, getLastKnownOutcome, handleNullInput, setLastKnownOutcome
buildSchema, cancel, checkContinue, getContainer, getContext, getOutgoingContainer, getPopConfig, getRecordBatchStatsContext, getSchema, getSelectionVector4, getValueAccessorById, getValueVectorId, getWritableBatch, isRecordBatchStatsLoggingEnabled, iterator, next, next, next, schemaChangeException, schemaChangeException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public LimitRecordBatch(Limit popConfig, FragmentContext context, RecordBatch incoming) throws OutOfMemoryException
OutOfMemoryException
public RecordBatch.IterOutcome innerNext()
innerNext
in class AbstractUnaryRecordBatch<Limit>
public SelectionVector2 getSelectionVector2()
getSelectionVector2
in interface VectorAccessible
getSelectionVector2
in class AbstractRecordBatch<Limit>
public int getRecordCount()
VectorAccessible
public void close()
close
in interface AutoCloseable
close
in class AbstractRecordBatch<Limit>
protected boolean setupNewSchema()
setupNewSchema
in class AbstractUnaryRecordBatch<Limit>
protected RecordBatch.IterOutcome getFinalOutcome(boolean hasRemainder)
getFinalOutcome
in class AbstractSingleRecordBatch<Limit>
protected RecordBatch.IterOutcome doWork()
doWork
in class AbstractUnaryRecordBatch<Limit>
public void dump()
RecordBatch
Copyright © 1970 The Apache Software Foundation. All rights reserved.