public class ParquetFormatPlugin extends Object implements FormatPlugin
| Modifier and Type | Field and Description |
|---|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
ParquetFormatConfig |
getConfig() |
DrillbitContext |
getContext() |
org.apache.hadoop.conf.Configuration |
getFsConf() |
ParquetGroupScan |
getGroupScan(String userName,
FileSelection selection,
List<SchemaPath> columns) |
FormatMatcher |
getMatcher() |
String |
getName() |
Set<StoragePluginOptimizerRule> |
getOptimizerRules() |
RecordWriter |
getRecordWriter(FragmentContext context,
ParquetWriter writer) |
StoragePluginConfig |
getStorageConfig() |
AbstractWriter |
getWriter(PhysicalOperator child,
String location,
List<String> partitionColumns) |
WriterRecordBatch |
getWriterBatch(FragmentContext context,
RecordBatch incoming,
ParquetWriter writer) |
boolean |
supportsAutoPartitioning()
Indicates whether this FormatPlugin supports auto-partitioning for CTAS statements
|
boolean |
supportsRead() |
boolean |
supportsWrite() |
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 FormatPluginpublic ParquetFormatConfig getConfig()
getConfig in interface FormatPluginpublic DrillbitContext getContext()
getContext in interface FormatPluginpublic boolean supportsRead()
supportsRead in interface FormatPluginpublic Set<StoragePluginOptimizerRule> getOptimizerRules()
getOptimizerRules in interface FormatPluginpublic AbstractWriter getWriter(PhysicalOperator child, String location, List<String> partitionColumns) throws IOException
getWriter in interface FormatPluginIOExceptionpublic RecordWriter getRecordWriter(FragmentContext context, ParquetWriter writer) throws IOException, OutOfMemoryException
IOExceptionOutOfMemoryExceptionpublic WriterRecordBatch getWriterBatch(FragmentContext context, RecordBatch incoming, ParquetWriter writer) throws ExecutionSetupException
ExecutionSetupExceptionpublic ParquetGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns) throws IOException
getGroupScan in interface FormatPluginIOExceptionpublic StoragePluginConfig getStorageConfig()
getStorageConfig in interface FormatPluginpublic String getName()
getName in interface FormatPluginpublic boolean supportsWrite()
supportsWrite in interface FormatPluginpublic boolean supportsAutoPartitioning()
FormatPluginsupportsAutoPartitioning in interface FormatPluginpublic FormatMatcher getMatcher()
getMatcher in interface FormatPluginCopyright © 2017 The Apache Software Foundation. All rights reserved.