Class AbstractBase
java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
- All Implemented Interfaces:
- Iterable<PhysicalOperator>,- GraphValue<PhysicalOperator>,- PhysicalOperator
- Direct Known Subclasses:
- AbstractGroupScan,- AbstractJoinPop,- AbstractMultiple,- AbstractParquetRowGroupScan,- AbstractReceiver,- AbstractSingle,- AbstractSubScan,- DrillSubScan,- DruidSubScan,- HBaseSubScan,- HiveSubScan,- HttpSubScan,- IcebergSubScan,- KafkaSubScan,- KuduSubScan,- MetadataControllerPOP,- MockSubScanPOP,- MongoSubScan,- OpenTSDBSubScan,- PhoenixSubScan,- RowKeyJoinPOP,- SplunkSubScan,- UnnestPOP,- Values
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic longprotected longstatic longprotected longprotected final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaccept(GraphVisitor<PhysicalOperator> visitor) getCost()longlongintDescribes the SelectionVector Mode for the output steam from this physical op.Name of the user whom to impersonate while setting up the implementation (RecordBatch) of this PhysicalOperator.booleanisBufferedOperator(QueryContext queryContext) Any operator that supports spilling should override this method (and return true)booleanDescribes whether or not a particular physical operator can actually be executed.voidsetCost(PrelCostEstimates cost) voidsetMaxAllocation(long maxAllocation) Any operator that supports spilling should override this methodfinal voidsetOperatorId(int id) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, iterator, spliteratorMethods inherited from interface org.apache.drill.exec.physical.base.PhysicalOperatoraccept, getNewWithChildren, getOperatorType
- 
Field Details- 
INIT_ALLOCATIONpublic static long INIT_ALLOCATION
- 
MAX_ALLOCATIONpublic static long MAX_ALLOCATION
- 
initialAllocationprotected long initialAllocation
- 
maxAllocationprotected long maxAllocation
- 
userName
 
- 
- 
Constructor Details- 
AbstractBasepublic AbstractBase()
- 
AbstractBase
- 
AbstractBase
 
- 
- 
Method Details- 
accept- Specified by:
- acceptin interface- GraphValue<PhysicalOperator>
 
- 
isExecutablepublic boolean isExecutable()Description copied from interface:PhysicalOperatorDescribes whether or not a particular physical operator can actually be executed. Most physical operators can be executed. However, Exchange nodes cannot be executed. In order to be executed, they must be converted into their Exec sub components.- Specified by:
- isExecutablein interface- PhysicalOperator
 
- 
setOperatorIdpublic final void setOperatorId(int id) - Specified by:
- setOperatorIdin interface- PhysicalOperator
 
- 
getOperatorIdpublic int getOperatorId()- Specified by:
- getOperatorIdin interface- PhysicalOperator
 
- 
getSVModeDescription copied from interface:PhysicalOperatorDescribes the SelectionVector Mode for the output steam from this physical op. This property is used during physical plan creating usingPhysicalPlanCreator.- Specified by:
- getSVModein interface- PhysicalOperator
 
- 
getInitialAllocationpublic long getInitialAllocation()- Specified by:
- getInitialAllocationin interface- PhysicalOperator
- Returns:
- The memory to preallocate for this operator
 
- 
getCost- Specified by:
- getCostin interface- PhysicalOperator
 
- 
setCost- Specified by:
- setCostin interface- PhysicalOperator
 
- 
getMaxAllocationpublic long getMaxAllocation()- Specified by:
- getMaxAllocationin interface- PhysicalOperator
- Returns:
- The maximum memory this operator can allocate
 
- 
setMaxAllocationpublic void setMaxAllocation(long maxAllocation) Any operator that supports spilling should override this method- Specified by:
- setMaxAllocationin interface- PhysicalOperator
- Parameters:
- maxAllocation- The max memory allocation to be set
 
- 
isBufferedOperatorAny operator that supports spilling should override this method (and return true)- Specified by:
- isBufferedOperatorin interface- PhysicalOperator
- Parameters:
- queryContext-
- Returns:
- false
 
- 
getUserNameDescription copied from interface:PhysicalOperatorName of the user whom to impersonate while setting up the implementation (RecordBatch) of this PhysicalOperator. Default value is "null" in which case we impersonate as user who launched the query.- Specified by:
- getUserNamein interface- PhysicalOperator
 
 
-