public class MockGroupScanPOP extends AbstractGroupScan
MockTableDef.MockScanEntry. Class. To simulate a scan that
can be parallelized, this group scan can contain a list of
MockTableDef.MockScanEntry, each of which simulates a separate file on disk, or
block within a file. Each will give rise to a separate minor fragment
(assuming sufficient parallelization.)| Modifier and Type | Field and Description |
|---|---|
protected List<MockTableDef.MockScanEntry> |
readEntries
The set of simulated files to scan.
|
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocationALL_COLUMNS| Constructor and Description |
|---|
MockGroupScanPOP(String url,
List<MockTableDef.MockScanEntry> readEntries) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyAssignments(List<CoordinationProtos.DrillbitEndpoint> endpoints) |
boolean |
canPushdownProjects(List<SchemaPath> columns)
GroupScan should check the list of columns, and see if it could support all the columns in the list.
|
GroupScan |
clone(List<SchemaPath> columns)
Returns a clone of GroupScan instance, except that the new GroupScan will use the provided list of columns .
|
String |
getDigest()
Returns a signature of the
GroupScan which should usually be composed of
all its attributes which could describe it uniquely. |
int |
getMaxParallelizationWidth() |
PhysicalOperator |
getNewWithChildren(List<PhysicalOperator> children)
Regenerate with this node with a new set of children.
|
List<MockTableDef.MockScanEntry> |
getReadEntries() |
ScanStats |
getScanStats() |
SubScan |
getSpecificScan(int minorFragmentId) |
String |
getUrl() |
String |
toString() |
accept, applyFilter, applyLimit, enforceWidth, getAnalyzeInfoProvider, getColumns, getColumnValueCount, getDistributionAffinity, getFiles, getFilter, getInitialAllocation, getMaxAllocation, getMetadataProvider, getMinParallelizationWidth, getOperatorAffinity, getOperatorType, getPartitionColumns, getScanStats, getSelectionRoot, getTableMetadata, hasFiles, isDistributed, isExecutable, iterator, supportsFilterPushDown, supportsLimitPushdown, supportsPartitionFilterPushdown, usedMetastoreaccept, getCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorIdacceptforEach, spliteratorprotected final List<MockTableDef.MockScanEntry> readEntries
public MockGroupScanPOP(String url, List<MockTableDef.MockScanEntry> readEntries)
public ScanStats getScanStats()
getScanStats in class AbstractGroupScanpublic String getUrl()
public List<MockTableDef.MockScanEntry> getReadEntries()
public void applyAssignments(List<CoordinationProtos.DrillbitEndpoint> endpoints)
public SubScan getSpecificScan(int minorFragmentId)
public int getMaxParallelizationWidth()
public PhysicalOperator getNewWithChildren(List<PhysicalOperator> children)
PhysicalOperatorpublic GroupScan clone(List<SchemaPath> columns)
GroupScanclone in interface GroupScanclone in class AbstractGroupScanpublic String getDigest()
GroupScanGroupScan which should usually be composed of
all its attributes which could describe it uniquely.public boolean canPushdownProjects(List<SchemaPath> columns)
GroupScancanPushdownProjects in interface GroupScancanPushdownProjects in class AbstractGroupScanCopyright © 2021 The Apache Software Foundation. All rights reserved.