public abstract class MapRDBGroupScan extends AbstractDbGroupScan
Modifier and Type | Field and Description |
---|---|
protected List<SchemaPath> |
columns |
protected double |
costFactor |
protected NavigableMap<TabletFragmentInfo,String> |
doNotAccessRegionsToScan |
protected Map<Integer,List<MapRDBSubScanSpec>> |
endpointFragmentMapping |
protected MapRDBFormatPlugin |
formatPlugin |
protected MapRDBFormatPluginConfig |
formatPluginConfig |
protected AbstractStoragePlugin |
storagePlugin |
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userName
ALL_COLUMNS
Constructor and Description |
---|
MapRDBGroupScan(AbstractStoragePlugin storagePlugin,
MapRDBFormatPlugin formatPlugin,
List<SchemaPath> columns,
String userName,
TableMetadataProvider metadataProvider) |
MapRDBGroupScan(MapRDBGroupScan that) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
List<SchemaPath> |
getColumns()
Returns a list of columns scanned by this group scan
|
String |
getDigest()
Returns a signature of the
GroupScan which should usually be composed of
all its attributes which could describe it uniquely. |
MapRDBFormatPlugin |
getFormatPlugin() |
String |
getIndexHint() |
int |
getMaxParallelizationWidth() |
TableMetadataProvider |
getMetadataProvider()
Returns
TableMetadataProvider instance which is used for providing metadata for current GroupScan . |
List<EndpointAffinity> |
getOperatorAffinity()
Get the list of Endpoints with associated affinities that this operator has preference for.
|
PluginCost |
getPluginCostModel()
Get the format plugin cost model.
|
protected NavigableMap<TabletFragmentInfo,String> |
getRegionsToScan() |
int |
getRowKeyOrdinal() |
TupleMetadata |
getSchema() |
IndexCollection |
getSecondaryIndexCollection(org.apache.calcite.rel.RelNode scanRel)
Get the index collection associated with this table if any
|
StoragePluginConfig |
getStorageConfig() |
AbstractStoragePlugin |
getStoragePlugin() |
protected abstract MapRDBSubScanSpec |
getSubScanSpec(TabletFragmentInfo key) |
TableMetadata |
getTableMetadata() |
abstract String |
getTableName() |
boolean |
isFilterPushedDown() |
protected void |
resetRegionsToScan() |
void |
setCostFactor(double sel) |
void |
setFilterPushedDown(boolean b) |
protected void |
setRegionsToScan(NavigableMap<TabletFragmentInfo,String> regionsToScan) |
getRangePartitionFunction, getRestrictedScan, getRowKeyName, getRowKeyPath, isRestrictedScan, supportsRestrictedScan, supportsSecondaryIndex
accept, applyFilter, applyLimit, clone, enforceWidth, getAnalyzeInfoProvider, getColumnValueCount, getDistributionAffinity, getFiles, getFilter, getInitialAllocation, getMaxAllocation, getMinParallelizationWidth, getOperatorType, getPartitionColumns, getScanStats, getScanStats, getScanStats, getSelectionRoot, hasFiles, isDistributed, isExecutable, iterator, supportsFilterPushDown, supportsLimitPushdown, supportsPartitionFilterPushdown, usedMetastore
accept, getCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRowCount, getStatistics, isIndexScan, setRowCount
applyFilter, applyLimit, clone, enforceWidth, getAnalyzeInfoProvider, getColumnValueCount, getFiles, getFilter, getMinParallelizationWidth, getPartitionColumns, getScanStats, getScanStats, getSelectionRoot, getSpecificScan, hasFiles, isDistributed, supportsFilterPushDown, supportsLimitPushdown, supportsPartitionFilterPushdown, usedMetastore
accept, getCost, getInitialAllocation, getMaxAllocation, getNewWithChildren, getOperatorId, getOperatorType, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorId
accept
forEach, iterator, spliterator
getDistributionAffinity
protected AbstractStoragePlugin storagePlugin
protected MapRDBFormatPlugin formatPlugin
protected MapRDBFormatPluginConfig formatPluginConfig
protected List<SchemaPath> columns
protected Map<Integer,List<MapRDBSubScanSpec>> endpointFragmentMapping
protected NavigableMap<TabletFragmentInfo,String> doNotAccessRegionsToScan
protected double costFactor
public MapRDBGroupScan(MapRDBGroupScan that)
public MapRDBGroupScan(AbstractStoragePlugin storagePlugin, MapRDBFormatPlugin formatPlugin, List<SchemaPath> columns, String userName, TableMetadataProvider metadataProvider)
public List<EndpointAffinity> getOperatorAffinity()
HasAffinity
getOperatorAffinity
in interface HasAffinity
getOperatorAffinity
in class AbstractGroupScan
public void applyAssignments(List<CoordinationProtos.DrillbitEndpoint> incomingEndpoints)
incomingEndpoints
- public int getMaxParallelizationWidth()
public MapRDBFormatPlugin getFormatPlugin()
public String getDigest()
GroupScan
GroupScan
which should usually be composed of
all its attributes which could describe it uniquely.public StoragePluginConfig getStorageConfig()
getStorageConfig
in class AbstractDbGroupScan
public AbstractStoragePlugin getStoragePlugin()
getStoragePlugin
in class AbstractDbGroupScan
public List<SchemaPath> getColumns()
GroupScan
getColumns
in interface DbGroupScan
getColumns
in interface GroupScan
getColumns
in class AbstractGroupScan
public boolean canPushdownProjects(List<SchemaPath> columns)
GroupScan
canPushdownProjects
in interface GroupScan
canPushdownProjects
in class AbstractGroupScan
public void setFilterPushedDown(boolean b)
public String getIndexHint()
public boolean isFilterPushedDown()
protected abstract MapRDBSubScanSpec getSubScanSpec(TabletFragmentInfo key)
public void setCostFactor(double sel)
public IndexCollection getSecondaryIndexCollection(org.apache.calcite.rel.RelNode scanRel)
DbGroupScan
getSecondaryIndexCollection
in interface DbGroupScan
getSecondaryIndexCollection
in class AbstractDbGroupScan
public abstract String getTableName()
public int getRowKeyOrdinal()
protected NavigableMap<TabletFragmentInfo,String> getRegionsToScan()
protected void resetRegionsToScan()
protected void setRegionsToScan(NavigableMap<TabletFragmentInfo,String> regionsToScan)
public PluginCost getPluginCostModel()
DbGroupScan
getPluginCostModel
in interface DbGroupScan
getPluginCostModel
in class AbstractDbGroupScan
public TupleMetadata getSchema()
public TableMetadataProvider getMetadataProvider()
GroupScan
TableMetadataProvider
instance which is used for providing metadata for current GroupScan
.getMetadataProvider
in interface GroupScan
getMetadataProvider
in class AbstractGroupScan
TableMetadataProvider
instance the source of metadatapublic TableMetadata getTableMetadata()
getTableMetadata
in interface GroupScan
getTableMetadata
in class AbstractGroupScan
Copyright © 1970 The Apache Software Foundation. All rights reserved.