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
Fields inherited from class org.apache.drill.exec.store.dfs.FormatMatcher
HIGH_PRIORITY, MEDIUM_PRIORITY
-
Constructor Summary
ConstructorDescriptionBasicFormatMatcher
(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 TypeMethodDescriptionboolean
isFileReadable
(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) boolean
Methods 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:
supportDirectoryReads
in classFormatMatcher
-
isReadable
public DrillTable isReadable(DrillFileSystem fs, FileSelection selection, FileSystemPlugin fsPlugin, String storageEngineName, SchemaConfig schemaConfig) throws IOException - Specified by:
isReadable
in 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:
isFileReadable
in classFormatMatcher
- Parameters:
fs
- file systemstatus
- file status- Returns:
- true if file is readable, false otherwise
- Throws:
IOException
-
getFormatPlugin
- Specified by:
getFormatPlugin
in classFormatMatcher
-