Package org.apache.drill.exec.store.hive
Class HiveScan
java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
org.apache.drill.exec.physical.base.AbstractGroupScan
org.apache.drill.exec.store.hive.HiveScan
- All Implemented Interfaces:
Iterable<PhysicalOperator>,GraphValue<PhysicalOperator>,FragmentLeaf,GroupScan,HasAffinity,Leaf,PhysicalOperator,Scan
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionHiveScan(String userName, HiveReadEntry hiveReadEntry, HiveStoragePluginConfig hiveStoragePluginConfig, List<SchemaPath> columns, Map<String, String> confProperties, StoragePluginRegistry pluginRegistry) HiveScan(String userName, HiveReadEntry hiveReadEntry, HiveStoragePlugin hiveStoragePlugin, List<SchemaPath> columns, HiveMetadataProvider metadataProvider, Map<String, String> confProperties) -
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 .clone(HiveReadEntry hiveReadEntry) Returns a list of columns scanned by this group scanReturns a signature of theGroupScanwhich should usually be composed of all its attributes which could describe it uniquely.org.apache.hadoop.hive.conf.HiveConfintgetNewWithChildren(List<PhysicalOperator> children) Regenerate with this node with a new set of children.Get the list of Endpoints with associated affinities that this operator has preference for.getSpecificScan(int minorFragmentId) booleanbooleanWhether or not this GroupScan supports pushdown of partition filters (directories for filesystems)toString()Methods inherited from class org.apache.drill.exec.physical.base.AbstractGroupScan
accept, applyFilter, applyLimit, enforceWidth, getAnalyzeInfoProvider, getColumnValueCount, getDistributionAffinity, getFiles, getFilter, getInitialAllocation, getMaxAllocation, getMetadataProvider, getMinParallelizationWidth, getOperatorType, getPartitionColumns, getScanStats, getScanStats, getSelectionRoot, 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 java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.drill.exec.physical.base.PhysicalOperator
getCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorId
-
Field Details
-
columns
-
-
Constructor Details
-
HiveScan
public HiveScan(String userName, HiveReadEntry hiveReadEntry, HiveStoragePluginConfig hiveStoragePluginConfig, List<SchemaPath> columns, Map<String, String> confProperties, StoragePluginRegistry pluginRegistry) throws ExecutionSetupException- Throws:
ExecutionSetupException
-
HiveScan
public HiveScan(String userName, HiveReadEntry hiveReadEntry, HiveStoragePlugin hiveStoragePlugin, List<SchemaPath> columns, HiveMetadataProvider metadataProvider, Map<String, String> confProperties) throws ExecutionSetupException- Throws:
ExecutionSetupException
-
HiveScan
-
-
Method Details
-
clone
- Throws:
ExecutionSetupException
-
getHiveReadEntry
-
getHiveStoragePluginConfig
-
getColumns
Description copied from interface:GroupScanReturns a list of columns scanned by this group scan- Specified by:
getColumnsin interfaceGroupScan- Overrides:
getColumnsin classAbstractGroupScan
-
getConfProperties
-
getStoragePlugin
-
getHiveConf
public org.apache.hadoop.hive.conf.HiveConf getHiveConf() -
isNativeReader
public boolean isNativeReader() -
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 classAbstractGroupScan
-
applyAssignments
-
getSpecificScan
- Throws:
ExecutionSetupException
-
getMaxParallelizationWidth
public int getMaxParallelizationWidth() -
getOperatorAffinity
Description copied from interface:HasAffinityGet the list of Endpoints with associated affinities that this operator has preference for.- Specified by:
getOperatorAffinityin interfaceHasAffinity- Overrides:
getOperatorAffinityin classAbstractGroupScan- Returns:
- List of EndpointAffinity objects.
-
getScanStats
- Overrides:
getScanStatsin classAbstractGroupScan
-
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.- Parameters:
children-
-
getDigest
Description copied from interface:GroupScanReturns a signature of theGroupScanwhich should usually be composed of all its attributes which could describe it uniquely. -
toString
-
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
-
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
-