Package org.apache.drill.exec.store.dfs
Class BasicFormatMatcher
java.lang.Object
org.apache.drill.exec.store.dfs.FormatMatcher
org.apache.drill.exec.store.dfs.BasicFormatMatcher
-
Field Summary
FieldsFields inherited from class org.apache.drill.exec.store.dfs.FormatMatcher
HIGH_PRIORITY, MEDIUM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionBasicFormatMatcher(FormatPlugin plugin, List<Pattern> patterns, List<MagicString> magicStrings) BasicFormatMatcher(FormatPlugin plugin, org.apache.hadoop.conf.Configuration fsConf, List<String> extensions, boolean compressible) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisFileReadable(DrillFileSystem fs, org.apache.hadoop.fs.FileStatus status) Function returns true if the file extension matches the pattern.isReadable(DrillFileSystem fs, FileSelection selection, FileSystemPlugin fsPlugin, String storageEngineName, SchemaConfig schemaConfig) booleanMethods inherited from class org.apache.drill.exec.store.dfs.FormatMatcher
getFormatLocationTransformer, priority
-
Field Details
-
plugin
-
-
Constructor Details
-
BasicFormatMatcher
public BasicFormatMatcher(FormatPlugin plugin, List<Pattern> patterns, List<MagicString> magicStrings) -
BasicFormatMatcher
public BasicFormatMatcher(FormatPlugin plugin, org.apache.hadoop.conf.Configuration fsConf, List<String> extensions, boolean compressible)
-
-
Method Details
-
supportDirectoryReads
public boolean supportDirectoryReads()- Specified by:
supportDirectoryReadsin classFormatMatcher
-
isReadable
public DrillTable isReadable(DrillFileSystem fs, FileSelection selection, FileSystemPlugin fsPlugin, String storageEngineName, SchemaConfig schemaConfig) throws IOException - Specified by:
isReadablein classFormatMatcher- Throws:
IOException
-
isFileReadable
public boolean isFileReadable(DrillFileSystem fs, org.apache.hadoop.fs.FileStatus status) throws IOException Function returns true if the file extension matches the pattern.- Specified by:
isFileReadablein classFormatMatcher- Parameters:
fs- file systemstatus- file status- Returns:
- true if file is readable, false otherwise
- Throws:
IOException
-
getFormatPlugin
- Specified by:
getFormatPluginin classFormatMatcher
-