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, maxAllocationALL_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, supportsSecondaryIndexaccept, applyFilter, applyLimit, clone, enforceWidth, getAnalyzeInfoProvider, getColumnValueCount, getDistributionAffinity, getFiles, getFilter, getInitialAllocation, getMaxAllocation, getMinParallelizationWidth, getOperatorType, getPartitionColumns, getScanStats, getScanStats, getSelectionRoot, hasFiles, isDistributed, isExecutable, iterator, supportsFilterPushDown, supportsLimitPushdown, supportsPartitionFilterPushdown, usedMetastoreaccept, getCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRowCount, getStatistics, isIndexScan, setRowCountapplyFilter, applyLimit, clone, enforceWidth, getAnalyzeInfoProvider, getColumnValueCount, getFiles, getFilter, getMinParallelizationWidth, getPartitionColumns, getScanStats, getSelectionRoot, getSpecificScan, hasFiles, isDistributed, supportsFilterPushDown, supportsLimitPushdown, supportsPartitionFilterPushdown, usedMetastoreaccept, getCost, getInitialAllocation, getMaxAllocation, getNewWithChildren, getOperatorId, getOperatorType, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorIdacceptforEach, iterator, spliteratorgetDistributionAffinityprotected 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()
HasAffinitygetOperatorAffinity in interface HasAffinitygetOperatorAffinity in class AbstractGroupScanpublic void applyAssignments(List<CoordinationProtos.DrillbitEndpoint> incomingEndpoints)
incomingEndpoints - public int getMaxParallelizationWidth()
public MapRDBFormatPlugin getFormatPlugin()
public String getDigest()
GroupScanGroupScan which should usually be composed of
all its attributes which could describe it uniquely.public StoragePluginConfig getStorageConfig()
getStorageConfig in class AbstractDbGroupScanpublic AbstractStoragePlugin getStoragePlugin()
getStoragePlugin in class AbstractDbGroupScanpublic List<SchemaPath> getColumns()
GroupScangetColumns in interface DbGroupScangetColumns in interface GroupScangetColumns in class AbstractGroupScanpublic boolean canPushdownProjects(List<SchemaPath> columns)
GroupScancanPushdownProjects in interface GroupScancanPushdownProjects in class AbstractGroupScanpublic 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)
DbGroupScangetSecondaryIndexCollection in interface DbGroupScangetSecondaryIndexCollection in class AbstractDbGroupScanpublic abstract String getTableName()
public int getRowKeyOrdinal()
protected NavigableMap<TabletFragmentInfo,String> getRegionsToScan()
protected void resetRegionsToScan()
protected void setRegionsToScan(NavigableMap<TabletFragmentInfo,String> regionsToScan)
public PluginCost getPluginCostModel()
DbGroupScangetPluginCostModel in interface DbGroupScangetPluginCostModel in class AbstractDbGroupScanpublic TupleMetadata getSchema()
public TableMetadataProvider getMetadataProvider()
GroupScanTableMetadataProvider instance which is used for providing metadata for current GroupScan.getMetadataProvider in interface GroupScangetMetadataProvider in class AbstractGroupScanTableMetadataProvider instance the source of metadatapublic TableMetadata getTableMetadata()
getTableMetadata in interface GroupScangetTableMetadata in class AbstractGroupScanCopyright © 2021 The Apache Software Foundation. All rights reserved.