public class LogFormatPlugin extends EasyFormatPlugin<LogFormatConfig>
EasyFormatPlugin.EasyFormatConfig, EasyFormatPlugin.EasyFormatConfigBuilder| Modifier and Type | Field and Description |
|---|---|
static String |
MAX_ERRORS_PROP |
static String |
OPERATOR_TYPE |
static String |
PLUGIN_NAME |
static String |
PROP_PREFIX |
static String |
REGEX_PROP |
formatConfig| Constructor and Description |
|---|
LogFormatPlugin(String name,
DrillbitContext context,
org.apache.hadoop.conf.Configuration fsConf,
StoragePluginConfig storageConfig,
LogFormatConfig formatConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected FileScanFramework.FileScanBuilder |
frameworkBuilder(OptionManager options,
EasySubScan scan)
Build a file scan framework for this plugin.
|
int |
maxErrors(TupleMetadata providedSchema) |
easyConfig, getConfig, getContext, getFsConf, getGroupScan, getGroupScan, getMatcher, getName, getOptimizerRules, getReaderBatch, getReaderOperatorType, getRecordReader, getRecordWriter, getScanStats, getStatisticsRecordWriter, getStorageConfig, getWriter, getWriterBatch, getWriterOperatorType, initScanBuilder, isBlockSplittable, isCompressible, isStatisticsRecordWriter, newBatchReader, readStatistics, supportsAutoPartitioning, supportsFileImplicitColumns, supportsLimitPushdown, supportsPushDown, supportsRead, supportsStatistics, supportsWrite, useEnhancedScan, writeStatisticsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGroupScan, getGroupScanpublic static final String PLUGIN_NAME
public static final String PROP_PREFIX
public static final String REGEX_PROP
public static final String MAX_ERRORS_PROP
public static final String OPERATOR_TYPE
public LogFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig, LogFormatConfig formatConfig)
protected FileScanFramework.FileScanBuilder frameworkBuilder(OptionManager options, EasySubScan scan) throws ExecutionSetupException
This plugin was created before the concept of "provided schema" was available. This plugin does, however, support a provided schema and table properties. The code here handles the various cases.
For the regex and max errors:
For columns:
Typical use cases:
frameworkBuilder in class EasyFormatPlugin<LogFormatConfig>scan - the physical operation definition for the scan operation. Contains
one or more files to read. (The Easy format plugin works only for files.)ExecutionSetupException - for all setup failurespublic int maxErrors(TupleMetadata providedSchema)
Copyright © 2021 The Apache Software Foundation. All rights reserved.