public class BasicFormatMatcher extends FormatMatcher
Modifier and Type | Field and Description |
---|---|
protected FormatPlugin |
plugin |
HIGH_PRIORITY, MEDIUM_PRIORITY
Constructor and Description |
---|
BasicFormatMatcher(FormatPlugin plugin,
org.apache.hadoop.conf.Configuration fsConf,
List<String> extensions,
boolean compressible) |
BasicFormatMatcher(FormatPlugin plugin,
List<Pattern> patterns,
List<MagicString> magicStrings) |
Modifier and Type | Method and Description |
---|---|
FormatPlugin |
getFormatPlugin() |
boolean |
isFileReadable(DrillFileSystem fs,
org.apache.hadoop.fs.FileStatus status)
Function returns true if the file extension matches the pattern.
|
DrillTable |
isReadable(DrillFileSystem fs,
FileSelection selection,
FileSystemPlugin fsPlugin,
String storageEngineName,
SchemaConfig schemaConfig) |
boolean |
supportDirectoryReads() |
getFormatLocationTransformer, priority
protected final FormatPlugin plugin
public BasicFormatMatcher(FormatPlugin plugin, List<Pattern> patterns, List<MagicString> magicStrings)
public BasicFormatMatcher(FormatPlugin plugin, org.apache.hadoop.conf.Configuration fsConf, List<String> extensions, boolean compressible)
public boolean supportDirectoryReads()
supportDirectoryReads
in class FormatMatcher
public DrillTable isReadable(DrillFileSystem fs, FileSelection selection, FileSystemPlugin fsPlugin, String storageEngineName, SchemaConfig schemaConfig) throws IOException
isReadable
in class FormatMatcher
IOException
public boolean isFileReadable(DrillFileSystem fs, org.apache.hadoop.fs.FileStatus status) throws IOException
isFileReadable
in class FormatMatcher
fs
- file systemstatus
- file statusIOException
public FormatPlugin getFormatPlugin()
getFormatPlugin
in class FormatMatcher
Copyright © 1970 The Apache Software Foundation. All rights reserved.