Class ParquetFormatPlugin
java.lang.Object
org.apache.drill.exec.store.parquet.ParquetFormatPlugin
- All Implemented Interfaces:
FormatPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]ParquetProperties.WriterVersionstatic final org.apache.parquet.format.converter.ParquetMetadataConverter -
Constructor Summary
ConstructorsConstructorDescriptionParquetFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig) ParquetFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig, ParquetFormatConfig formatConfig) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.ConfigurationgetGroupScan(String userName, FileSelection selection, List<SchemaPath> columns) getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns, OptionManager options) getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns, OptionManager options, MetadataProviderManager metadataProviderManager) getName()getRecordWriter(FragmentContext context, ParquetWriter writer) getWriter(PhysicalOperator child, String location, List<String> partitionColumns) getWriterBatch(FragmentContext context, RecordBatch incoming, ParquetWriter writer) readStatistics(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath) booleanIndicates whether this FormatPlugin supports auto-partitioning for CTAS statementsbooleanbooleanbooleanvoidwriteStatistics(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, waitMethods inherited from interface org.apache.drill.exec.store.dfs.FormatPlugin
getGroupScan, getOptimizerRules
-
Field Details
-
PARQUET_FORMAT_VERSIONS
ParquetProperties.WriterVersion -
parquetMetadataConverter
public static final org.apache.parquet.format.converter.ParquetMetadataConverter parquetMetadataConverter
-
-
Constructor Details
-
ParquetFormatPlugin
public ParquetFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig) -
ParquetFormatPlugin
public ParquetFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig, ParquetFormatConfig formatConfig)
-
-
Method Details
-
getFsConf
public org.apache.hadoop.conf.Configuration getFsConf()- Specified by:
getFsConfin interfaceFormatPlugin
-
getConfig
- Specified by:
getConfigin interfaceFormatPlugin
-
getContext
- Specified by:
getContextin interfaceFormatPlugin
-
supportsRead
public boolean supportsRead()- Specified by:
supportsReadin interfaceFormatPlugin
-
getOptimizerRules
- Specified by:
getOptimizerRulesin interfaceFormatPlugin
-
getWriter
public AbstractWriter getWriter(PhysicalOperator child, String location, List<String> partitionColumns) throws IOException - Specified by:
getWriterin interfaceFormatPlugin- Throws:
IOException
-
getRecordWriter
public RecordWriter getRecordWriter(FragmentContext context, ParquetWriter writer) throws IOException, OutOfMemoryException - Throws:
IOExceptionOutOfMemoryException
-
getWriterBatch
public WriterRecordBatch getWriterBatch(FragmentContext context, RecordBatch incoming, ParquetWriter writer) throws ExecutionSetupException - Throws:
ExecutionSetupException
-
getGroupScan
public AbstractFileGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns) throws IOException - Specified by:
getGroupScanin interfaceFormatPlugin- Throws:
IOException
-
getGroupScan
public AbstractFileGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns, OptionManager options) throws IOException - Specified by:
getGroupScanin interfaceFormatPlugin- Throws:
IOException
-
getGroupScan
public AbstractFileGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns, OptionManager options, MetadataProviderManager metadataProviderManager) throws IOException - Specified by:
getGroupScanin interfaceFormatPlugin- Throws:
IOException
-
supportsStatistics
public boolean supportsStatistics()- Specified by:
supportsStatisticsin interfaceFormatPlugin
-
readStatistics
public DrillStatsTable.TableStatistics readStatistics(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath) throws IOException - Specified by:
readStatisticsin interfaceFormatPlugin- Throws:
IOException
-
writeStatistics
public void writeStatistics(DrillStatsTable.TableStatistics statistics, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath) throws IOException - Specified by:
writeStatisticsin interfaceFormatPlugin- Throws:
IOException
-
getStorageConfig
- Specified by:
getStorageConfigin interfaceFormatPlugin
-
getName
- Specified by:
getNamein interfaceFormatPlugin
-
supportsWrite
public boolean supportsWrite()- Specified by:
supportsWritein interfaceFormatPlugin
-
supportsAutoPartitioning
public boolean supportsAutoPartitioning()Description copied from interface:FormatPluginIndicates whether this FormatPlugin supports auto-partitioning for CTAS statements- Specified by:
supportsAutoPartitioningin interfaceFormatPlugin- Returns:
- true if auto-partitioning is supported
-
getMatcher
- Specified by:
getMatcherin interfaceFormatPlugin
-