Class IcebergFormatPlugin
java.lang.Object
org.apache.drill.exec.store.iceberg.format.IcebergFormatPlugin
- All Implemented Interfaces:
FormatPlugin
-
Constructor Summary
ConstructorDescriptionIcebergFormatPlugin
(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, FileSystemConfig storageConfig, IcebergFormatPluginConfig config) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.plan.Convention
org.apache.hadoop.conf.Configuration
getGroupScan
(String userName, FileSelection selection, List<SchemaPath> columns) getGroupScan
(String userName, FileSelection selection, List<SchemaPath> columns, MetadataProviderManager metadataProviderManager) getName()
Set<? extends org.apache.calcite.plan.RelOptRule>
getOptimizerRules
(PlannerPhase phase) getWriter
(PhysicalOperator child, String location, List<String> partitionColumns) readStatistics
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath) boolean
Indicates whether this FormatPlugin supports auto-partitioning for CTAS statementsboolean
boolean
boolean
void
writeStatistics
(DrillStatsTable.TableStatistics statistics, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.store.dfs.FormatPlugin
getGroupScan, getGroupScan, getOptimizerRules
-
Constructor Details
-
IcebergFormatPlugin
public IcebergFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, FileSystemConfig storageConfig, IcebergFormatPluginConfig config)
-
-
Method Details
-
supportsRead
public boolean supportsRead()- Specified by:
supportsRead
in interfaceFormatPlugin
-
supportsWrite
public boolean supportsWrite()- Specified by:
supportsWrite
in interfaceFormatPlugin
-
supportsAutoPartitioning
public boolean supportsAutoPartitioning()Description copied from interface:FormatPlugin
Indicates whether this FormatPlugin supports auto-partitioning for CTAS statements- Specified by:
supportsAutoPartitioning
in interfaceFormatPlugin
- Returns:
- true if auto-partitioning is supported
-
getMatcher
- Specified by:
getMatcher
in interfaceFormatPlugin
-
getWriter
public AbstractWriter getWriter(PhysicalOperator child, String location, List<String> partitionColumns) - Specified by:
getWriter
in interfaceFormatPlugin
-
getOptimizerRules
- Specified by:
getOptimizerRules
in interfaceFormatPlugin
-
getGroupScan
public AbstractGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns) throws IOException - Specified by:
getGroupScan
in interfaceFormatPlugin
- Throws:
IOException
-
getGroupScan
public AbstractGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns, MetadataProviderManager metadataProviderManager) throws IOException - Specified by:
getGroupScan
in interfaceFormatPlugin
- Throws:
IOException
-
supportsStatistics
public boolean supportsStatistics()- Specified by:
supportsStatistics
in interfaceFormatPlugin
-
readStatistics
public DrillStatsTable.TableStatistics readStatistics(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath) - Specified by:
readStatistics
in interfaceFormatPlugin
-
writeStatistics
public void writeStatistics(DrillStatsTable.TableStatistics statistics, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath) - Specified by:
writeStatistics
in interfaceFormatPlugin
-
getConfig
- Specified by:
getConfig
in interfaceFormatPlugin
-
getStorageConfig
- Specified by:
getStorageConfig
in interfaceFormatPlugin
-
getFsConf
public org.apache.hadoop.conf.Configuration getFsConf()- Specified by:
getFsConf
in interfaceFormatPlugin
-
getContext
- Specified by:
getContext
in interfaceFormatPlugin
-
getName
- Specified by:
getName
in interfaceFormatPlugin
-
getConvention
public org.apache.calcite.plan.Convention getConvention()
-