| Modifier and Type | Method and Description |
|---|---|
static SchemaChangeException |
SchemaChangeException.schemaChanged(String message,
BatchSchema priorSchema,
BatchSchema newSchema) |
| Modifier and Type | Method and Description |
|---|---|
static LogicalExpression |
ExpressionTreeMaterializer.materializeAndCheckErrors(LogicalExpression expr,
VectorAccessible batch,
FunctionLookupContext functionLookupContext) |
| Modifier and Type | Method and Description |
|---|---|
<T extends ValueVector> |
ScanBatch.Mutator.addField(MaterializedField field,
Class<T> clazz) |
<T extends ValueVector> |
OutputMutator.addField(MaterializedField field,
Class<T> clazz)
Add a ValueVector for new (or existing) field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StreamingAggBatch.buildSchema() |
void |
HashAggBatch.buildSchema() |
abstract void |
HashAggTemplate.doSetup(RecordBatch incoming) |
abstract int |
HashAggTemplate.getVectorIndex(int recordIndex) |
void |
HashAggTemplate.BatchHolder.outputRecordValues(int htRowIdx,
int outRowIdx) |
abstract boolean |
HashAggTemplate.resetValues() |
void |
HashAggregator.setup(HashAggregate hashAggrConfig,
HashTableConfig htConfig,
FragmentContext context,
OperatorContext oContext,
RecordBatch incoming,
HashAggBatch outgoing,
LogicalExpression[] valueExprs,
List<TypedFieldId> valueFieldIds,
TypedFieldId[] keyFieldIds,
VectorContainer outContainer,
int extraRowBytes) |
void |
HashAggTemplate.setup(HashAggregate hashAggrConfig,
HashTableConfig htConfig,
FragmentContext context,
OperatorContext oContext,
RecordBatch incoming,
HashAggBatch outgoing,
LogicalExpression[] valueExprs,
List<TypedFieldId> valueFieldIds,
TypedFieldId[] groupByOutFieldIds,
VectorContainer outContainer,
int extraRowBytes) |
void |
StreamingAggregator.setup(OperatorContext context,
RecordBatch incoming,
StreamingAggBatch outgoing) |
void |
StreamingAggTemplate.setup(OperatorContext context,
RecordBatch incoming,
StreamingAggBatch outgoing) |
abstract void |
StreamingAggTemplate.setupInterior(RecordBatch incoming,
RecordBatch outgoing) |
void |
HashAggTemplate.BatchHolder.setupInterior(RecordBatch incoming,
RecordBatch outgoing,
VectorContainer aggrValuesContainer) |
void |
HashAggTemplate.BatchHolder.updateAggrValuesInternal(int incomingRowIdx,
int htRowIdx) |
| Modifier and Type | Method and Description |
|---|---|
int |
HashTableTemplate.containsKey(int incomingRowIdx,
boolean isProbe) |
int |
HashTable.containsKey(int incomingRowIdx,
boolean isProbe) |
HashTable |
ChainedHashTable.createAndSetupHashTable(TypedFieldId[] outKeyFieldIds,
int numPartitions) |
protected abstract void |
HashTableTemplate.doSetup(RecordBatch incomingBuild,
RecordBatch incomingProbe) |
protected abstract int |
HashTableTemplate.getHashBuild(int incomingRowIdx) |
int |
HashTableTemplate.getHashCode(int incomingRowIdx) |
int |
HashTable.getHashCode(int incomingRowIdx) |
protected abstract int |
HashTableTemplate.getHashProbe(int incomingRowIdx) |
protected boolean |
HashTableTemplate.BatchHolder.isKeyMatchInternalBuild(int incomingRowIdx,
int htRowIdx) |
protected boolean |
HashTableTemplate.BatchHolder.isKeyMatchInternalProbe(int incomingRowIdx,
int htRowIdx) |
protected void |
HashTableTemplate.BatchHolder.outputRecordKeys(int htRowIdx,
int outRowIdx) |
HashTable.PutStatus |
HashTableTemplate.put(int incomingRowIdx,
IndexPointer htIdxHolder,
int hashCode)
put() uses the hash code (from gethashCode() above) to insert the key(s) from the incoming
row into the hash table.
|
HashTable.PutStatus |
HashTable.put(int incomingRowIdx,
IndexPointer htIdxHolder,
int hashCode) |
protected void |
HashTableTemplate.BatchHolder.setup() |
protected void |
HashTableTemplate.BatchHolder.setupInterior(RecordBatch incomingBuild,
RecordBatch incomingProbe,
RecordBatch outgoing,
VectorContainer htContainer) |
protected void |
HashTableTemplate.BatchHolder.setValue(int incomingRowIdx,
int htRowIdx) |
void |
HashTableTemplate.updateBatches() |
void |
HashTable.updateBatches() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
FilterTemplate2.doEval(int inIndex,
int outIndex) |
abstract void |
FilterTemplate2.doSetup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing) |
void |
Filterer.filterBatch(int recordCount) |
void |
FilterTemplate2.filterBatch(int recordCount) |
protected Filterer |
FilterRecordBatch.generateSV2Filterer() |
protected Filterer |
FilterRecordBatch.generateSV4Filterer() |
void |
Filterer.setup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing,
TransferPair[] transfers) |
void |
FilterTemplate4.setup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing,
TransferPair[] transfers) |
void |
FilterTemplate2.setup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing,
TransferPair[] transfers) |
protected boolean |
FilterRecordBatch.setupNewSchema() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
FlattenTemplate.doEval(int inIndex,
int outIndex) |
abstract void |
FlattenTemplate.doSetup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing) |
void |
Flattener.setup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing,
List<TransferPair> transfers) |
void |
FlattenTemplate.setup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing,
List<TransferPair> transfers) |
protected boolean |
FlattenRecordBatch.setupNewSchema() |
| Modifier and Type | Method and Description |
|---|---|
void |
HashJoinHelper.addNewBatch(int recordCount) |
void |
HashJoinHelper.addStartIndexBatch() |
protected void |
NestedLoopJoinBatch.buildSchema()
Builds the output container's schema.
|
protected void |
HashJoinBatch.buildSchema() |
abstract void |
JoinTemplate.doSetup(FragmentContext context,
JoinStatus status,
VectorContainer outgoing) |
void |
HashJoinBatch.executeBuildPhase() |
void |
HashJoinProbeTemplate.executeProbePhase() |
SelectionVector4 |
HashJoinHelper.getNewSV4(int recordCount) |
int |
HashJoinProbeTemplate.probeAndProject() |
int |
HashJoinProbe.probeAndProject() |
void |
HashJoinHelper.setCurrentIndex(int keyIndex,
int batchIndex,
int recordIndex) |
void |
HashJoinBatch.setupHashTable() |
void |
JoinWorker.setupJoin(FragmentContext context,
JoinStatus status,
VectorContainer outgoing) |
void |
JoinTemplate.setupJoin(FragmentContext context,
JoinStatus status,
VectorContainer outgoing) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
LimitRecordBatch.setupNewSchema() |
| Modifier and Type | Method and Description |
|---|---|
void |
MergingRecordBatch.buildSchema() |
abstract void |
MergingReceiverTemplate.doCopy(int inIndex,
int outIndex) |
void |
MergingReceiverGeneratorBase.doCopy(int inIndex,
int outIndex) |
abstract int |
MergingReceiverTemplate.doEval(int leftIndex,
int rightIndex) |
int |
MergingReceiverGeneratorBase.doEval(int leftIndex,
int rightIndex) |
abstract void |
MergingReceiverTemplate.doSetup(FragmentContext context,
VectorAccessible incoming,
VectorAccessible outgoing) |
void |
MergingReceiverGeneratorBase.doSetup(FragmentContext context,
VectorAccessible incoming,
VectorAccessible outgoing) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
OrderedPartitionProjectorTemplate.doEval(int inIndex,
int partitionIndex) |
abstract void |
OrderedPartitionProjectorTemplate.doSetup(FragmentContext context,
VectorAccessible incoming,
RecordBatch outgoing,
VectorContainer partitionVectors) |
void |
SampleSorter.setup(FragmentContext context,
RecordBatch hyperBatch) |
void |
OrderedPartitionProjectorTemplate.setup(FragmentContext context,
VectorAccessible incoming,
RecordBatch outgoing,
List<TransferPair> transfers,
VectorContainer partitionVectors,
int partitions,
SchemaPath outputField) |
void |
OrderedPartitionProjector.setup(FragmentContext context,
VectorAccessible incoming,
RecordBatch outgoing,
List<TransferPair> transfers,
VectorContainer partitionVectors,
int partitions,
SchemaPath outputField) |
void |
SampleSortTemplate.setup(FragmentContext context,
VectorContainer sampleBatch,
SelectionVector2 vector2) |
void |
SampleCopierTemplate.setupCopier(FragmentContext context,
SelectionVector4 sv4,
VectorAccessible incoming,
VectorAccessible outgoing) |
void |
SampleCopier.setupCopier(FragmentContext context,
SelectionVector4 sv4,
VectorAccessible incoming,
VectorAccessible outgoing) |
protected void |
OrderedPartitionRecordBatch.setupNewSchema(VectorAccessible batch)
Sets up projection that will transfer all of the columns in batch, and also populate the partition column based on
which partition a record falls into in the partition table
|
| Constructor and Description |
|---|
OrderedPartitionProjectorTemplate() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PartitionSenderRootExec.createPartitioner() |
abstract int |
PartitionerTemplate.doEval(int inIndex) |
protected void |
PartitionerTemplate.OutgoingRecordBatch.doEval(int inIndex,
int outIndex) |
abstract void |
PartitionerTemplate.doSetup(FragmentContext context,
RecordBatch incoming,
PartitionerTemplate.OutgoingRecordBatch[] outgoing) |
protected void |
PartitionerTemplate.OutgoingRecordBatch.doSetup(RecordBatch incoming,
VectorAccessible outgoing) |
void |
PartitionerTemplate.setup(FragmentContext context,
RecordBatch incoming,
HashPartitionSender popConfig,
OperatorStats stats,
OperatorContext oContext,
int start,
int end) |
void |
Partitioner.setup(FragmentContext context,
RecordBatch incoming,
HashPartitionSender popConfig,
OperatorStats stats,
OperatorContext oContext,
int start,
int count) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
ProjectorTemplate.doEval(int inIndex,
int outIndex) |
abstract void |
ProjectorTemplate.doSetup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing) |
void |
ProjectorTemplate.setup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing,
List<TransferPair> transfers) |
void |
Projector.setup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing,
List<TransferPair> transfers) |
protected boolean |
ProjectRecordBatch.setupNewSchema() |
| Modifier and Type | Method and Description |
|---|---|
void |
SortRecordBatchBuilder.build(FragmentContext context,
VectorContainer outputContainer) |
void |
SortRecordBatchBuilder.build(VectorContainer outputContainer) |
static Sorter |
SortBatch.createNewSorter(FragmentContext context,
List<Order.Ordering> orderings,
VectorAccessible batch) |
static Sorter |
SortBatch.createNewSorter(FragmentContext context,
List<Order.Ordering> orderings,
VectorAccessible batch,
MappingSet mainMapping,
MappingSet leftMapping,
MappingSet rightMapping) |
void |
Sorter.setup(FragmentContext context,
SelectionVector4 vector4,
VectorContainer hyperBatch) |
void |
SortTemplate.setup(FragmentContext context,
SelectionVector4 vector4,
VectorContainer hyperBatch) |
| Modifier and Type | Method and Description |
|---|---|
int |
CopierTemplate4.copyRecords(int index,
int recordCount) |
int |
CopierTemplate2.copyRecords(int index,
int recordCount) |
int |
Copier.copyRecords(int index,
int recordCount) |
abstract void |
CopierTemplate4.doEval(int inIndex,
int outIndex) |
abstract void |
CopierTemplate2.doEval(int inIndex,
int outIndex) |
abstract void |
CopierTemplate4.doSetup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing) |
abstract void |
CopierTemplate2.doSetup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing) |
static Copier |
RemovingRecordBatch.getGenerated4Copier(RecordBatch batch,
FragmentContext context,
BufferAllocator allocator,
VectorContainer container,
RecordBatch outgoing,
SchemaChangeCallBack callBack) |
protected boolean |
RemovingRecordBatch.setupNewSchema() |
void |
CopierTemplate4.setupRemover(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing) |
void |
CopierTemplate2.setupRemover(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing) |
void |
Copier.setupRemover(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing) |
| Modifier and Type | Method and Description |
|---|---|
void |
PriorityQueueTemplate.add(RecordBatchData batch) |
void |
PriorityQueue.add(RecordBatchData batch)
The elements in the given batch are added to the priority queue.
|
void |
TopNBatch.buildSchema() |
int |
PriorityQueueTemplate.compare(int leftIndex,
int rightIndex) |
static PriorityQueue |
TopNBatch.createNewPriorityQueue(MappingSet mainMapping,
MappingSet leftMapping,
MappingSet rightMapping,
OptionSet optionSet,
FunctionLookupContext functionLookupContext,
CodeCompiler codeCompiler,
List<Order.Ordering> orderings,
VectorAccessible batch,
boolean unionTypeEnabled,
boolean codegenDump,
int limit,
BufferAllocator allocator,
BatchSchema.SelectionVectorMode mode) |
abstract int |
PriorityQueueTemplate.doEval(int leftIndex,
int rightIndex) |
abstract void |
PriorityQueueTemplate.doSetup(VectorContainer incoming,
RecordBatch outgoing) |
void |
PriorityQueueTemplate.generate() |
void |
PriorityQueue.generate()
This method must be called before fetching the final priority queue hyper batch and final Sv4 vector.
|
void |
PriorityQueueTemplate.init(int limit,
BufferAllocator allocator,
boolean hasSv2) |
void |
PriorityQueue.init(int limit,
BufferAllocator allocator,
boolean hasSv2)
Initializes the priority queue.
|
void |
TopNBatch.purgeAndResetPriorityQueue()
Handle schema changes during execution.
|
void |
PriorityQueueTemplate.resetQueue(VectorContainer container,
SelectionVector4 v4) |
void |
PriorityQueue.resetQueue(VectorContainer container,
SelectionVector4 vector4) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
TraceRecordBatch.setupNewSchema() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
UnionAllRecordBatch.buildSchema() |
abstract void |
UnionAllerTemplate.doEval(int inIndex,
int outIndex) |
abstract void |
UnionAllerTemplate.doSetup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing) |
void |
UnionAllerTemplate.setup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing,
List<TransferPair> transfers) |
void |
UnionAller.setup(FragmentContext context,
RecordBatch incoming,
RecordBatch outgoing,
List<TransferPair> transfers) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
WindowFrameRecordBatch.buildSchema() |
abstract void |
NoFrameSupportTemplate.copyFromInternal(int inIndex,
int outIndex) |
abstract void |
NoFrameSupportTemplate.copyNext(int inIndex,
int outIndex)
copies value(s) from inIndex row to outIndex row.
|
abstract void |
NoFrameSupportTemplate.copyPrev(int inIndex,
int outIndex)
copies value(s) from inIndex row to outIndex row.
|
boolean |
WindowFramer.isPeer(int b1Index,
VectorAccessible b1,
int b2Index,
VectorAccessible b2)
compares two rows from different batches (can be the same), if they have the same value for the order by
expression
|
abstract boolean |
NoFrameSupportTemplate.isPeer(int b1Index,
VectorAccessible b1,
int b2Index,
VectorAccessible b2)
compares two rows from different batches (can be the same), if they have the same value for the order by
expression
|
boolean |
WindowFramer.isSamePartition(int b1Index,
VectorAccessible b1,
int b2Index,
VectorAccessible b2)
compares two rows from different batches (can be the same), if they have the same value for the partition by
expression
|
abstract boolean |
NoFrameSupportTemplate.isSamePartition(int b1Index,
VectorAccessible b1,
int b2Index,
VectorAccessible b2)
compares two rows from different batches (can be the same), if they have the same value for the partition by
expression
|
abstract void |
NoFrameSupportTemplate.outputRow(int outIndex,
Partition partition)
called once for each row after we evaluate all peer rows.
|
abstract boolean |
NoFrameSupportTemplate.resetValues()
reset all window functions
|
void |
WindowFramer.setup(List<WindowDataBatch> batches,
VectorContainer container,
OperatorContext operatorContext,
boolean requireFullPartition,
WindowPOP popConfig) |
void |
NoFrameSupportTemplate.setup(List<WindowDataBatch> batches,
VectorContainer container,
OperatorContext oContext,
boolean requireFullPartition,
WindowPOP popConfig) |
void |
FrameSupportTemplate.setup(List<WindowDataBatch> batches,
VectorContainer container,
OperatorContext oContext,
boolean requireFullPartition,
WindowPOP popConfig) |
abstract void |
NoFrameSupportTemplate.setupCopyFromInternal(VectorAccessible incoming,
VectorAccessible outgoing) |
abstract void |
NoFrameSupportTemplate.setupCopyNext(VectorAccessible incoming,
VectorAccessible outgoing) |
abstract void |
NoFrameSupportTemplate.setupCopyPrev(VectorAccessible incoming,
VectorAccessible outgoing) |
abstract void |
FrameSupportTemplate.setupEvaluatePeer(VectorAccessible incoming,
VectorAccessible outgoing) |
abstract void |
NoFrameSupportTemplate.setupPartition(WindowDataBatch incoming,
VectorAccessible outgoing)
Called once per partition, before processing the partition.
|
abstract void |
FrameSupportTemplate.setupPartition(WindowDataBatch incoming,
VectorAccessible outgoing)
Called once per partition, before processing the partition.
|
abstract void |
FrameSupportTemplate.setupReadLastValue(VectorAccessible incoming,
VectorAccessible outgoing) |
abstract void |
FrameSupportTemplate.setupSaveFirstValue(VectorAccessible incoming,
VectorAccessible outgoing) |
| Modifier and Type | Method and Description |
|---|---|
void |
ExternalSortBatch.buildSchema() |
SingleBatchSorter |
ExternalSortBatch.createNewSorter(FragmentContext context,
VectorAccessible batch) |
abstract int |
SingleBatchSorterTemplate.doEval(char leftIndex,
char rightIndex) |
abstract int |
MSortTemplate.doEval(int leftIndex,
int rightIndex) |
abstract void |
SingleBatchSorterTemplate.doSetup(FragmentContextInterface context,
VectorAccessible incoming,
RecordBatch outgoing) |
abstract void |
MSortTemplate.doSetup(FragmentContext context,
VectorContainer incoming,
RecordBatch outgoing) |
BatchGroup |
ExternalSortBatch.mergeAndSpill(LinkedList<BatchGroup> batchGroups) |
void |
MSorter.setup(FragmentContext context,
BufferAllocator allocator,
SelectionVector4 vector4,
VectorContainer hyperBatch) |
void |
MSortTemplate.setup(FragmentContext context,
BufferAllocator allocator,
SelectionVector4 vector4,
VectorContainer hyperBatch) |
void |
PriorityQueueCopierTemplate.setup(FragmentContext context,
BufferAllocator allocator,
VectorAccessible hyperBatch,
List<BatchGroup> batchGroups,
VectorAccessible outgoing) |
void |
PriorityQueueCopier.setup(FragmentContext context,
BufferAllocator allocator,
VectorAccessible hyperBatch,
List<BatchGroup> batchGroups,
VectorAccessible outgoing) |
void |
SingleBatchSorterTemplate.setup(FragmentContextInterface context,
SelectionVector2 vector2,
VectorAccessible incoming) |
void |
SingleBatchSorter.setup(FragmentContextInterface context,
SelectionVector2 vector2,
VectorAccessible incoming) |
void |
SingleBatchSorter.sort(SelectionVector2 vector2) |
| Modifier and Type | Method and Description |
|---|---|
int |
PriorityQueueCopierTemplate.compare(int leftIndex,
int rightIndex) |
abstract void |
PriorityQueueCopierTemplate.doCopy(int inIndex,
int outIndex) |
abstract int |
PriorityQueueCopierTemplate.doEval(int leftIndex,
int rightIndex) |
abstract int |
MSortTemplate.doEval(int leftIndex,
int rightIndex) |
abstract void |
MSortTemplate.doSetup(FragmentContextInterface context,
VectorContainer incoming,
RecordBatch outgoing) |
abstract void |
PriorityQueueCopierTemplate.doSetup(VectorAccessible incoming,
VectorAccessible outgoing) |
void |
PriorityQueueCopierTemplate.setup(BufferAllocator allocator,
VectorAccessible hyperBatch,
List<BatchGroup> batchGroups,
VectorAccessible outgoing) |
void |
PriorityQueueCopier.setup(BufferAllocator allocator,
VectorAccessible hyperBatch,
List<BatchGroup> batchGroups,
VectorAccessible outgoing) |
void |
MSorter.setup(FragmentContextInterface context,
BufferAllocator allocator,
SelectionVector4 vector4,
VectorContainer hyperBatch,
int outputBatchSize,
int desiredBatchSize) |
void |
MSortTemplate.setup(FragmentContextInterface context,
BufferAllocator allocator,
SelectionVector4 vector4,
VectorContainer hyperBatch,
int outputBatchSize,
int desiredBatchSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractRecordBatch.buildSchema() |
boolean |
RecordBatchLoader.load(UserBitShared.RecordBatchDef def,
DrillBuf buf)
Load a record batch from a single buffer.
|
SchemaBuilder |
SchemaBuilder.removeField(MaterializedField f) |
protected abstract boolean |
AbstractSingleRecordBatch.setupNewSchema() |
| Modifier and Type | Method and Description |
|---|---|
void |
SelectionVector4Builder.add(RecordBatch batch,
boolean newSchema) |
| Constructor and Description |
|---|
SelectionVector4(ByteBuf vector,
int recordCount,
int batchRecordCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
ParquetSchema.createNonExistentColumns(OutputMutator output,
List<NullableIntVector> nullFilledVectors)
Create "dummy" fields for columns which are selected in the SELECT clause, but not
present in the Parquet schema.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PojoWriter.init(OutputMutator output)
Initializes value vector.
|
void |
AbstractPojoWriter.init(OutputMutator output) |
Copyright © 2017 The Apache Software Foundation. All rights reserved.