Class ParquetFormatPlugin
java.lang.Object
org.apache.drill.exec.store.parquet.ParquetFormatPlugin
- All Implemented Interfaces:
FormatPlugin
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String[]
ParquetProperties.WriterVersion
static final org.apache.parquet.format.converter.ParquetMetadataConverter
-
Constructor Summary
ConstructorDescriptionParquetFormatPlugin
(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.Configuration
getGroupScan
(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) 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, 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:
getFsConf
in interfaceFormatPlugin
-
getConfig
- Specified by:
getConfig
in interfaceFormatPlugin
-
getContext
- Specified by:
getContext
in interfaceFormatPlugin
-
supportsRead
public boolean supportsRead()- Specified by:
supportsRead
in interfaceFormatPlugin
-
getOptimizerRules
- Specified by:
getOptimizerRules
in interfaceFormatPlugin
-
getWriter
public AbstractWriter getWriter(PhysicalOperator child, String location, List<String> partitionColumns) throws IOException - Specified by:
getWriter
in interfaceFormatPlugin
- Throws:
IOException
-
getRecordWriter
public RecordWriter getRecordWriter(FragmentContext context, ParquetWriter writer) throws IOException, OutOfMemoryException - Throws:
IOException
OutOfMemoryException
-
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:
getGroupScan
in interfaceFormatPlugin
- Throws:
IOException
-
getGroupScan
public AbstractFileGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns, OptionManager options) throws IOException - Specified by:
getGroupScan
in interfaceFormatPlugin
- Throws:
IOException
-
getGroupScan
public AbstractFileGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns, OptionManager options, 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) throws IOException - Specified by:
readStatistics
in 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:
writeStatistics
in interfaceFormatPlugin
- Throws:
IOException
-
getStorageConfig
- Specified by:
getStorageConfig
in interfaceFormatPlugin
-
getName
- Specified by:
getName
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
-