Class SchemalessScan
java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
org.apache.drill.exec.physical.base.AbstractGroupScan
org.apache.drill.exec.physical.base.AbstractFileGroupScan
org.apache.drill.exec.physical.base.SchemalessScan
- All Implemented Interfaces:
Iterable<PhysicalOperator>,GraphValue<PhysicalOperator>,FileGroupScan,FragmentLeaf,GroupScan,HasAffinity,Leaf,PhysicalOperator,Scan,SubScan
The type of scan operator, which allows to scan schemaless tables (
DynamicDrillTable with null selection)-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.base.AbstractBase
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userNameFields inherited from interface org.apache.drill.exec.physical.base.GroupScan
ALL_COLUMNS -
Constructor Summary
ConstructorsConstructorDescriptionSchemalessScan(String userName, org.apache.hadoop.fs.Path selectionRoot) SchemalessScan(String userName, org.apache.hadoop.fs.Path selectionRoot, List<SchemaPath> columns) SchemalessScan(SchemalessScan that) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAssignments(List<CoordinationProtos.DrillbitEndpoint> endpoints) booleancanPushdownProjects(List<SchemaPath> columns) GroupScan should check the list of columns, and see if it could support all the columns in the list.clone(List<SchemaPath> columns) Returns a clone of GroupScan instance, except that the new GroupScan will use the provided list of columns .Returns a signature of theGroupScanwhich should usually be composed of all its attributes which could describe it uniquely.intgetNewWithChildren(List<PhysicalOperator> children) Regenerate with this node with a new set of children.org.apache.hadoop.fs.PathReturns path to the selection root.getSpecificScan(int minorFragmentId) booleanWhether or not this GroupScan supports pushdown of partition filters (directories for filesystems)toString()Methods inherited from class org.apache.drill.exec.physical.base.AbstractFileGroupScan
clone, modifyFileSelectionMethods inherited from class org.apache.drill.exec.physical.base.AbstractGroupScan
accept, applyFilter, applyLimit, enforceWidth, getAnalyzeInfoProvider, getColumns, getColumnValueCount, getDistributionAffinity, getFiles, getFilter, getInitialAllocation, getMaxAllocation, getMetadataProvider, getMinParallelizationWidth, getOperatorAffinity, getOperatorType, getPartitionColumns, getScanStats, getScanStats, getTableMetadata, hasFiles, isDistributed, isExecutable, iterator, supportsFilterPushDown, supportsLimitPushdown, usedMetastoreMethods inherited from class org.apache.drill.exec.physical.base.AbstractBase
accept, getCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.drill.common.graph.GraphValue
acceptMethods inherited from interface org.apache.drill.exec.physical.base.GroupScan
applyFilter, applyLimit, enforceWidth, getAnalyzeInfoProvider, getColumns, getColumnValueCount, getFiles, getFilter, getMetadataProvider, getMinParallelizationWidth, getPartitionColumns, getScanStats, getScanStats, getTableMetadata, hasFiles, isDistributed, supportsFilterPushDown, supportsLimitPushdown, usedMetastoreMethods inherited from interface org.apache.drill.exec.physical.base.HasAffinity
getDistributionAffinity, getOperatorAffinityMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.drill.exec.physical.base.PhysicalOperator
accept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getOperatorType, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
-
Constructor Details
-
SchemalessScan
public SchemalessScan(String userName, org.apache.hadoop.fs.Path selectionRoot, List<SchemaPath> columns) -
SchemalessScan
-
SchemalessScan
-
-
Method Details
-
getSelectionRoot
public org.apache.hadoop.fs.Path getSelectionRoot()Description copied from interface:GroupScanReturns path to the selection root. If this GroupScan cannot provide selection root, it returns null.- Specified by:
getSelectionRootin interfaceGroupScan- Overrides:
getSelectionRootin classAbstractGroupScan- Returns:
- path to the selection root
-
applyAssignments
- Specified by:
applyAssignmentsin interfaceGroupScan
-
getSpecificScan
- Specified by:
getSpecificScanin interfaceGroupScan
-
getMaxParallelizationWidth
public int getMaxParallelizationWidth()- Specified by:
getMaxParallelizationWidthin interfaceGroupScan
-
getDigest
Description copied from interface:GroupScanReturns a signature of theGroupScanwhich should usually be composed of all its attributes which could describe it uniquely. -
toString
-
getNewWithChildren
Description copied from interface:PhysicalOperatorRegenerate with this node with a new set of children. This is used in the case of materialization or optimization.- Specified by:
getNewWithChildrenin interfacePhysicalOperator- Parameters:
children-
-
clone
Description copied from interface:GroupScanReturns a clone of GroupScan instance, except that the new GroupScan will use the provided list of columns .- Specified by:
clonein interfaceGroupScan- Overrides:
clonein classAbstractGroupScan
-
getScanStats
- Overrides:
getScanStatsin classAbstractGroupScan
-
canPushdownProjects
Description copied from interface:GroupScanGroupScan should check the list of columns, and see if it could support all the columns in the list.- Specified by:
canPushdownProjectsin interfaceGroupScan- Overrides:
canPushdownProjectsin classAbstractGroupScan
-
supportsPartitionFilterPushdown
public boolean supportsPartitionFilterPushdown()Description copied from interface:GroupScanWhether or not this GroupScan supports pushdown of partition filters (directories for filesystems)- Specified by:
supportsPartitionFilterPushdownin interfaceGroupScan- Overrides:
supportsPartitionFilterPushdownin classAbstractFileGroupScan
-