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 Summary
FieldsModifier and TypeFieldDescriptionstatic longprotected longstatic longprotected longprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.drill.exec.physical.base.PhysicalOperator
accept, getNewWithChildren, getOperatorType
-
Field Details
-
INIT_ALLOCATION
public static long INIT_ALLOCATION -
MAX_ALLOCATION
public static long MAX_ALLOCATION -
initialAllocation
protected long initialAllocation -
maxAllocation
protected long maxAllocation -
userName
-
-
Constructor Details
-
AbstractBase
public AbstractBase() -
AbstractBase
-
AbstractBase
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceGraphValue<PhysicalOperator>
-
isExecutable
public 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 interfacePhysicalOperator
-
setOperatorId
public final void setOperatorId(int id) - Specified by:
setOperatorIdin interfacePhysicalOperator
-
getOperatorId
public int getOperatorId()- Specified by:
getOperatorIdin interfacePhysicalOperator
-
getSVMode
Description 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 interfacePhysicalOperator
-
getInitialAllocation
public long getInitialAllocation()- Specified by:
getInitialAllocationin interfacePhysicalOperator- Returns:
- The memory to preallocate for this operator
-
getCost
- Specified by:
getCostin interfacePhysicalOperator
-
setCost
- Specified by:
setCostin interfacePhysicalOperator
-
getMaxAllocation
public long getMaxAllocation()- Specified by:
getMaxAllocationin interfacePhysicalOperator- Returns:
- The maximum memory this operator can allocate
-
setMaxAllocation
public void setMaxAllocation(long maxAllocation) Any operator that supports spilling should override this method- Specified by:
setMaxAllocationin interfacePhysicalOperator- Parameters:
maxAllocation- The max memory allocation to be set
-
isBufferedOperator
Any operator that supports spilling should override this method (and return true)- Specified by:
isBufferedOperatorin interfacePhysicalOperator- Parameters:
queryContext-- Returns:
- false
-
getUserName
Description 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 interfacePhysicalOperator
-