public class EasyGroupScan extends AbstractFileGroupScan
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocationALL_COLUMNS, NO_COLUMN_STATS| Constructor and Description |
|---|
EasyGroupScan(String userName,
FileSelection selection,
EasyFormatPlugin<?> formatPlugin,
List<SchemaPath> columns,
String selectionRoot) |
EasyGroupScan(String userName,
FileSelection selection,
EasyFormatPlugin<?> formatPlugin,
String selectionRoot) |
EasyGroupScan(String userName,
List<String> files,
StoragePluginConfig storageConfig,
FormatPluginConfig formatConfig,
StoragePluginRegistry engineRegistry,
List<SchemaPath> columns,
String selectionRoot) |
| 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.
|
FileGroupScan |
clone(FileSelection selection) |
GroupScan |
clone(List<SchemaPath> columns)
Returns a clone of GroupScan instance, except that the new GroupScan will use the provided list of columns .
|
List<SchemaPath> |
getColumns() |
String |
getDigest()
Returns a signature of the
GroupScan which should usually be composed of
all its attributes which could describe it uniquely. |
List<String> |
getFiles()
Returns a collection of file names associated with this GroupScan.
|
FileSelection |
getFileSelection() |
FormatPluginConfig |
getFormatConfig() |
int |
getMaxParallelizationWidth() |
PhysicalOperator |
getNewWithChildren(List<PhysicalOperator> children)
Regenerate with this node with a new set of children.
|
List<EndpointAffinity> |
getOperatorAffinity()
Get the list of Endpoints with associated affinities that this operator has preference for.
|
ScanStats |
getScanStats(PlannerSettings settings) |
String |
getSelectionRoot() |
EasySubScan |
getSpecificScan(int minorFragmentId) |
StoragePluginConfig |
getStorageConfig() |
Iterable<CompleteFileWork> |
getWorkIterable() |
boolean |
hasFiles()
Return true if this GroupScan can return its selection as a list of file names (retrieved by getFiles()).
|
void |
modifyFileSelection(FileSelection selection) |
String |
toString() |
supportsPartitionFilterPushdownaccept, applyLimit, enforceWidth, getColumnValueCount, getDistributionAffinity, getInitialAllocation, getMaxAllocation, getMinParallelizationWidth, getOperatorType, getPartitionColumns, getScanStats, isExecutable, iterator, supportsLimitPushdownaccept, getCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyLimit, enforceWidth, getColumnValueCount, getMinParallelizationWidth, getPartitionColumns, supportsLimitPushdownaccept, getCost, getInitialAllocation, getMaxAllocation, getOperatorId, getOperatorType, getSVMode, getUserName, isBufferedOperator, isExecutable, setCost, setMaxAllocation, setOperatorIdacceptgetDistributionAffinitypublic EasyGroupScan(String userName, List<String> files, StoragePluginConfig storageConfig, FormatPluginConfig formatConfig, StoragePluginRegistry engineRegistry, List<SchemaPath> columns, String selectionRoot) throws IOException, ExecutionSetupException
IOExceptionExecutionSetupExceptionpublic EasyGroupScan(String userName, FileSelection selection, EasyFormatPlugin<?> formatPlugin, String selectionRoot) throws IOException
IOExceptionpublic EasyGroupScan(String userName, FileSelection selection, EasyFormatPlugin<?> formatPlugin, List<SchemaPath> columns, String selectionRoot) throws IOException
IOExceptionpublic Iterable<CompleteFileWork> getWorkIterable()
public String getSelectionRoot()
public int getMaxParallelizationWidth()
public ScanStats getScanStats(PlannerSettings settings)
getScanStats in interface GroupScangetScanStats in class AbstractGroupScanpublic boolean hasFiles()
GroupScanhasFiles in interface GroupScanhasFiles in class AbstractGroupScanpublic List<String> getFiles()
GroupScangetFiles in interface GroupScangetFiles in class AbstractGroupScanpublic List<SchemaPath> getColumns()
public FileSelection getFileSelection()
public void modifyFileSelection(FileSelection selection)
modifyFileSelection in interface FileGroupScanmodifyFileSelection in class AbstractFileGroupScanpublic PhysicalOperator getNewWithChildren(List<PhysicalOperator> children) throws ExecutionSetupException
PhysicalOperatorExecutionSetupExceptionpublic List<EndpointAffinity> getOperatorAffinity()
HasAffinitygetOperatorAffinity in interface HasAffinitygetOperatorAffinity in class AbstractGroupScanpublic void applyAssignments(List<CoordinationProtos.DrillbitEndpoint> incomingEndpoints)
public EasySubScan getSpecificScan(int minorFragmentId)
public StoragePluginConfig getStorageConfig()
public FormatPluginConfig getFormatConfig()
public String getDigest()
GroupScanGroupScan which should usually be composed of
all its attributes which could describe it uniquely.public GroupScan clone(List<SchemaPath> columns)
GroupScanclone in interface GroupScanclone in class AbstractGroupScanpublic FileGroupScan clone(FileSelection selection) throws IOException
clone in interface FileGroupScanclone in class AbstractFileGroupScanIOExceptionpublic boolean canPushdownProjects(List<SchemaPath> columns)
GroupScancanPushdownProjects in interface GroupScancanPushdownProjects in class AbstractGroupScanCopyright © 2017 The Apache Software Foundation. All rights reserved.