public class ParquetFormatPlugin extends Object implements FormatPlugin
Modifier and Type | Field and Description |
---|---|
static String[] |
PARQUET_FORMAT_VERSIONS
ParquetProperties.WriterVersion |
static org.apache.parquet.format.converter.ParquetMetadataConverter |
parquetMetadataConverter |
Constructor and Description |
---|
ParquetFormatPlugin(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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGroupScan, getOptimizerRules
public static final String[] PARQUET_FORMAT_VERSIONS
ParquetProperties.WriterVersion
public static final org.apache.parquet.format.converter.ParquetMetadataConverter parquetMetadataConverter
public ParquetFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig)
public ParquetFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig, ParquetFormatConfig formatConfig)
public org.apache.hadoop.conf.Configuration getFsConf()
getFsConf
in interface FormatPlugin
public ParquetFormatConfig getConfig()
getConfig
in interface FormatPlugin
public DrillbitContext getContext()
getContext
in interface FormatPlugin
public boolean supportsRead()
supportsRead
in interface FormatPlugin
public Set<StoragePluginOptimizerRule> getOptimizerRules()
getOptimizerRules
in interface FormatPlugin
public AbstractWriter getWriter(PhysicalOperator child, String location, List<String> partitionColumns) throws IOException
getWriter
in interface FormatPlugin
IOException
public RecordWriter getRecordWriter(FragmentContext context, ParquetWriter writer) throws IOException, OutOfMemoryException
IOException
OutOfMemoryException
public WriterRecordBatch getWriterBatch(FragmentContext context, RecordBatch incoming, ParquetWriter writer) throws ExecutionSetupException
ExecutionSetupException
public AbstractFileGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns) throws IOException
getGroupScan
in interface FormatPlugin
IOException
public AbstractFileGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns, OptionManager options) throws IOException
getGroupScan
in interface FormatPlugin
IOException
public AbstractFileGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns, OptionManager options, MetadataProviderManager metadataProviderManager) throws IOException
getGroupScan
in interface FormatPlugin
IOException
public boolean supportsStatistics()
supportsStatistics
in interface FormatPlugin
public DrillStatsTable.TableStatistics readStatistics(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath) throws IOException
readStatistics
in interface FormatPlugin
IOException
public void writeStatistics(DrillStatsTable.TableStatistics statistics, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath) throws IOException
writeStatistics
in interface FormatPlugin
IOException
public StoragePluginConfig getStorageConfig()
getStorageConfig
in interface FormatPlugin
public String getName()
getName
in interface FormatPlugin
public boolean supportsWrite()
supportsWrite
in interface FormatPlugin
public boolean supportsAutoPartitioning()
FormatPlugin
supportsAutoPartitioning
in interface FormatPlugin
public FormatMatcher getMatcher()
getMatcher
in interface FormatPlugin
Copyright © 1970 The Apache Software Foundation. All rights reserved.