public class JSONFormatPlugin extends EasyFormatPlugin<JSONFormatPlugin.JSONFormatConfig>
| Modifier and Type | Class and Description |
|---|---|
static class |
JSONFormatPlugin.JSONFormatConfig |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME |
formatConfig| Constructor and Description |
|---|
JSONFormatPlugin(String name,
DrillbitContext context,
org.apache.hadoop.conf.Configuration fsConf,
StoragePluginConfig storageConfig) |
JSONFormatPlugin(String name,
DrillbitContext context,
org.apache.hadoop.conf.Configuration fsConf,
StoragePluginConfig config,
JSONFormatPlugin.JSONFormatConfig formatPluginConfig) |
| Modifier and Type | Method and Description |
|---|---|
int |
getReaderOperatorType() |
RecordReader |
getRecordReader(FragmentContext context,
DrillFileSystem dfs,
FileWork fileWork,
List<SchemaPath> columns,
String userName) |
RecordWriter |
getRecordWriter(FragmentContext context,
EasyWriter writer) |
int |
getWriterOperatorType() |
boolean |
supportsPushDown() |
getConfig, getContext, getFsConf, getGroupScan, getMatcher, getName, getOptimizerRules, getScanStats, getStorageConfig, getWriter, getWriterBatch, isBlockSplittable, isCompressible, supportsAutoPartitioning, supportsRead, supportsWritepublic static final String DEFAULT_NAME
public JSONFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig)
public JSONFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig config, JSONFormatPlugin.JSONFormatConfig formatPluginConfig)
public RecordReader getRecordReader(FragmentContext context, DrillFileSystem dfs, FileWork fileWork, List<SchemaPath> columns, String userName) throws ExecutionSetupException
getRecordReader in class EasyFormatPlugin<JSONFormatPlugin.JSONFormatConfig>ExecutionSetupExceptionpublic RecordWriter getRecordWriter(FragmentContext context, EasyWriter writer) throws IOException
getRecordWriter in class EasyFormatPlugin<JSONFormatPlugin.JSONFormatConfig>IOExceptionpublic int getReaderOperatorType()
getReaderOperatorType in class EasyFormatPlugin<JSONFormatPlugin.JSONFormatConfig>public int getWriterOperatorType()
getWriterOperatorType in class EasyFormatPlugin<JSONFormatPlugin.JSONFormatConfig>public boolean supportsPushDown()
supportsPushDown in class EasyFormatPlugin<JSONFormatPlugin.JSONFormatConfig>Copyright © 2017 The Apache Software Foundation. All rights reserved.