Class ImageFormatPlugin
java.lang.Object
org.apache.drill.exec.store.dfs.easy.EasyFormatPlugin<ImageFormatConfig>
org.apache.drill.exec.store.image.ImageFormatPlugin
- All Implemented Interfaces:
FormatPlugin
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.store.dfs.easy.EasyFormatPlugin
EasyFormatPlugin.EasyFormatConfig, EasyFormatPlugin.EasyFormatConfigBuilder, EasyFormatPlugin.ScanFrameworkVersion
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.dfs.easy.EasyFormatPlugin
formatConfig
-
Constructor Summary
ConstructorDescriptionImageFormatPlugin
(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig, ImageFormatConfig formatConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected FileScanFramework.FileScanBuilder
frameworkBuilder
(EasySubScan scan, OptionSet options) Create the plugin-specific framework that manages the scan.newBatchReader
(EasySubScan scan, OptionSet options) For EVF V1, to be removed.Methods inherited from class org.apache.drill.exec.store.dfs.easy.EasyFormatPlugin
configureScan, easyConfig, getConfig, getContext, getFsConf, getGroupScan, getGroupScan, getMatcher, getName, getOptimizerRules, getReaderBatch, getReaderOperatorType, getRecordReader, getRecordWriter, getScanStats, getStatisticsRecordWriter, getStorageConfig, getWriter, getWriterBatch, getWriterOperatorType, initScanBuilder, isBlockSplittable, isCompressible, isStatisticsRecordWriter, readStatistics, scanVersion, supportsAutoPartitioning, supportsFileImplicitColumns, supportsLimitPushdown, supportsPushDown, supportsRead, supportsStatistics, supportsWrite, writeStatistics
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, getGroupScan, getOptimizerRules
-
Constructor Details
-
ImageFormatPlugin
public ImageFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig, ImageFormatConfig formatConfig)
-
-
Method Details
-
newBatchReader
public ManagedReader<? extends FileScanFramework.FileSchemaNegotiator> newBatchReader(EasySubScan scan, OptionSet options) throws ExecutionSetupException Description copied from class:EasyFormatPlugin
For EVF V1, to be removed.- Overrides:
newBatchReader
in classEasyFormatPlugin<ImageFormatConfig>
- Throws:
ExecutionSetupException
-
frameworkBuilder
protected FileScanFramework.FileScanBuilder frameworkBuilder(EasySubScan scan, OptionSet options) throws ExecutionSetupException Description copied from class:EasyFormatPlugin
Create the plugin-specific framework that manages the scan. The framework creates batch readers one by one for each file or block. It defines semantic rules for projection. It handles "early" or "late" schema readers. A typical framework builds on standardized frameworks for files in general or text files in particular.For EVF V1, to be removed.
- Overrides:
frameworkBuilder
in classEasyFormatPlugin<ImageFormatConfig>
- Parameters:
scan
- the physical operation definition for the scan operation. Contains one or more files to read. (The Easy format plugin works only for files.)- Returns:
- the scan framework which orchestrates the scan operation across potentially many files
- Throws:
ExecutionSetupException
- for all setup failures
-