Class IcebergGroupScan
java.lang.Object
org.apache.drill.exec.physical.base.AbstractBase
org.apache.drill.exec.physical.base.AbstractGroupScan
org.apache.drill.exec.store.iceberg.IcebergGroupScan
- All Implemented Interfaces:
Iterable<PhysicalOperator>,GraphValue<PhysicalOperator>,FragmentLeaf,GroupScan,HasAffinity,Leaf,PhysicalOperator,Scan
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.drill.exec.physical.base.AbstractBase
INIT_ALLOCATION, initialAllocation, MAX_ALLOCATION, maxAllocation, userNameFields inherited from interface org.apache.drill.exec.physical.base.GroupScan
ALL_COLUMNS -
Constructor Summary
ConstructorsConstructorDescriptionIcebergGroupScan(String userName, StoragePluginConfig storageConfig, FormatPluginConfig formatConfig, List<SchemaPath> columns, TupleMetadata schema, String path, LogicalExpression condition, Integer maxRecords, StoragePluginRegistry pluginRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAssignments(List<CoordinationProtos.DrillbitEndpoint> endpoints) applyLimit(int maxRecords) By default, return null to indicate row count based prune is not supported.builder()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 theGroupScanwhich should usually be composed of all its attributes which could describe it uniquely.intintgetNewWithChildren(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.getPath()static StringgetPath(SchemaPath schemaPath) getSpecificScan(int minorFragmentId) org.apache.iceberg.TableScanstatic org.apache.iceberg.TableScaninitTableScan(IcebergFormatPlugin formatPlugin, String path, LogicalExpression condition) static org.apache.iceberg.TableScanprojectColumns(org.apache.iceberg.TableScan tableScan, List<SchemaPath> columns) booleanDefault is not to support limit pushdown.toString()Methods inherited from class org.apache.drill.exec.physical.base.AbstractGroupScan
accept, applyFilter, canPushdownProjects, enforceWidth, getAnalyzeInfoProvider, getColumnValueCount, getDistributionAffinity, getFiles, getFilter, getInitialAllocation, getMaxAllocation, getMetadataProvider, getMinParallelizationWidth, getOperatorType, getPartitionColumns, getScanStats, getScanStats, getSelectionRoot, getTableMetadata, hasFiles, isDistributed, isExecutable, iterator, supportsFilterPushDown, supportsPartitionFilterPushdown, usedMetastoreMethods inherited from class org.apache.drill.exec.physical.base.AbstractBase
accept, getCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.drill.common.graph.GraphValue
acceptMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.drill.exec.physical.base.PhysicalOperator
getCost, getOperatorId, getSVMode, getUserName, isBufferedOperator, setCost, setMaxAllocation, setOperatorId
-
Constructor Details
-
IcebergGroupScan
public IcebergGroupScan(String userName, StoragePluginConfig storageConfig, FormatPluginConfig formatConfig, List<SchemaPath> columns, TupleMetadata schema, String path, LogicalExpression condition, Integer maxRecords, StoragePluginRegistry pluginRegistry) throws IOException - Throws:
IOException
-
-
Method Details
-
initTableScan
public static org.apache.iceberg.TableScan initTableScan(IcebergFormatPlugin formatPlugin, String path, LogicalExpression condition) -
builder
-
clone
Description copied from interface:GroupScanReturns a clone of GroupScan instance, except that the new GroupScan will use the provided list of columns .- Specified by:
clonein interfaceGroupScan- Overrides:
clonein classAbstractGroupScan
-
applyLimit
Description copied from class:AbstractGroupScanBy default, return null to indicate row count based prune is not supported. Each group scan subclass should override, if it supports row count based prune.- Specified by:
applyLimitin interfaceGroupScan- Overrides:
applyLimitin classAbstractGroupScan- Parameters:
maxRecords- : the number of rows requested from group scan.- Returns:
- a new instance of group scan if the prune is successful. null when either if row-based prune is not supported, or if prune is not successful.
-
applyAssignments
-
getSpecificScan
-
getTableScan
public org.apache.iceberg.TableScan getTableScan() -
getMaxRecords
public int getMaxRecords() -
getMaxParallelizationWidth
public int getMaxParallelizationWidth() -
getDigest
Description copied from interface:GroupScanReturns a signature of theGroupScanwhich should usually be composed of all its attributes which could describe it uniquely. -
getScanStats
- Overrides:
getScanStatsin classAbstractGroupScan
-
getNewWithChildren
Description copied from interface:PhysicalOperatorRegenerate with this node with a new set of children. This is used in the case of materialization or optimization.- Parameters:
children-
-
projectColumns
public static org.apache.iceberg.TableScan projectColumns(org.apache.iceberg.TableScan tableScan, List<SchemaPath> columns) -
getPath
-
getOperatorAffinity
Description copied from interface:HasAffinityGet the list of Endpoints with associated affinities that this operator has preference for.- Specified by:
getOperatorAffinityin interfaceHasAffinity- Overrides:
getOperatorAffinityin classAbstractGroupScan- Returns:
- List of EndpointAffinity objects.
-
supportsLimitPushdown
public boolean supportsLimitPushdown()Description copied from class:AbstractGroupScanDefault is not to support limit pushdown.- Specified by:
supportsLimitPushdownin interfaceGroupScan- Overrides:
supportsLimitPushdownin classAbstractGroupScan
-
getColumns
Description copied from interface:GroupScanReturns a list of columns scanned by this group scan- Specified by:
getColumnsin interfaceGroupScan- Overrides:
getColumnsin classAbstractGroupScan
-
getSchema
-
getStorageConfig
-
getFormatConfig
-
getPath
-
getCondition
-
getFormatPlugin
-
toString
-
toBuilder
-