Class HBaseGroupScan
java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
org.apache.drill.exec.physical.base.AbstractGroupScan
org.apache.drill.exec.store.hbase.HBaseGroupScan
- All Implemented Interfaces:
Iterable<PhysicalOperator>
,GraphValue<PhysicalOperator>
,FragmentLeaf
,GroupScan
,HasAffinity
,Leaf
,PhysicalOperator
,Scan
,DrillHBaseConstants
-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.base.AbstractBase
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName
Fields inherited from interface org.apache.drill.exec.store.hbase.DrillHBaseConstants
COLUMN_FAMILY_TYPE, COLUMN_TYPE, HBASE_ZOOKEEPER_PORT, ROW_KEY, ROW_KEY_PATH, ROW_KEY_TYPE, SYS_STORE_PROVIDER_HBASE_CONFIG, SYS_STORE_PROVIDER_HBASE_TABLE
Fields inherited from interface org.apache.drill.exec.physical.base.GroupScan
ALL_COLUMNS
-
Constructor Summary
ConstructorDescriptionEmpty constructor, do not use, only for testing.HBaseGroupScan
(String userName, HBaseScanSpec hbaseScanSpec, HBaseStoragePluginConfig storagePluginConfig, List<SchemaPath> columns, StoragePluginRegistry pluginRegistry) HBaseGroupScan
(String userName, HBaseStoragePlugin storagePlugin, HBaseScanSpec scanSpec, List<SchemaPath> columns) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyAssignments
(List<CoordinationProtos.DrillbitEndpoint> incomingEndpoints) boolean
canPushdownProjects
(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 list of columns scanned by this group scanReturns a signature of theGroupScan
which should usually be composed of all its attributes which could describe it uniquely.org.apache.hadoop.conf.Configuration
int
getNewWithChildren
(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) boolean
void
setFilterPushedDown
(boolean b) void
setHBaseScanSpec
(HBaseScanSpec hbaseScanSpec) Do not use, only for testing.void
setRegionsToScan
(NavigableMap<org.apache.hadoop.hbase.HRegionInfo, org.apache.hadoop.hbase.ServerName> regionsToScan) Do not use, only for testing.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, supportsPartitionFilterPushdown, usedMetastore
Methods inherited from class org.apache.drill.exec.physical.base.AbstractBase
accept, getCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.drill.common.graph.GraphValue
accept
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.apache.drill.exec.physical.base.PhysicalOperator
getCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorId
-
Constructor Details
-
HBaseGroupScan
public HBaseGroupScan(String userName, HBaseScanSpec hbaseScanSpec, HBaseStoragePluginConfig storagePluginConfig, List<SchemaPath> columns, StoragePluginRegistry pluginRegistry) throws IOException, ExecutionSetupException - Throws:
IOException
ExecutionSetupException
-
HBaseGroupScan
public HBaseGroupScan(String userName, HBaseStoragePlugin storagePlugin, HBaseScanSpec scanSpec, List<SchemaPath> columns) -
HBaseGroupScan
public HBaseGroupScan()Empty constructor, do not use, only for testing.
-
-
Method Details
-
clone
Description copied from interface:GroupScan
Returns a clone of GroupScan instance, except that the new GroupScan will use the provided list of columns .- Specified by:
clone
in interfaceGroupScan
- Overrides:
clone
in classAbstractGroupScan
-
getOperatorAffinity
Description copied from interface:HasAffinity
Get the list of Endpoints with associated affinities that this operator has preference for.- Specified by:
getOperatorAffinity
in interfaceHasAffinity
- Overrides:
getOperatorAffinity
in classAbstractGroupScan
- Returns:
- List of EndpointAffinity objects.
-
applyAssignments
- Specified by:
applyAssignments
in interfaceGroupScan
-
getSpecificScan
- Specified by:
getSpecificScan
in interfaceGroupScan
-
getMaxParallelizationWidth
public int getMaxParallelizationWidth()- Specified by:
getMaxParallelizationWidth
in interfaceGroupScan
-
getScanStats
- Overrides:
getScanStats
in classAbstractGroupScan
-
getNewWithChildren
Description copied from interface:PhysicalOperator
Regenerate with this node with a new set of children. This is used in the case of materialization or optimization.- Specified by:
getNewWithChildren
in interfacePhysicalOperator
-
getStoragePlugin
-
getHBaseConf
public org.apache.hadoop.conf.Configuration getHBaseConf() -
getTableName
-
getDigest
Description copied from interface:GroupScan
Returns a signature of theGroupScan
which should usually be composed of all its attributes which could describe it uniquely. -
toString
-
getStorageConfig
-
getColumns
Description copied from interface:GroupScan
Returns a list of columns scanned by this group scan- Specified by:
getColumns
in interfaceGroupScan
- Overrides:
getColumns
in classAbstractGroupScan
-
getHBaseScanSpec
-
canPushdownProjects
Description copied from interface:GroupScan
GroupScan should check the list of columns, and see if it could support all the columns in the list.- Specified by:
canPushdownProjects
in interfaceGroupScan
- Overrides:
canPushdownProjects
in classAbstractGroupScan
-
setFilterPushedDown
public void setFilterPushedDown(boolean b) -
isFilterPushedDown
public boolean isFilterPushedDown() -
setHBaseScanSpec
Do not use, only for testing.
-