Package org.apache.drill.exec.store.dfs
Class FormatMatcher
java.lang.Object
org.apache.drill.exec.store.dfs.FormatMatcher
- Direct Known Subclasses:
BasicFormatMatcher
,DeltaFormatMatcher
,IcebergFormatMatcher
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturnsFormatLocationTransformer
instance relevant for {@link this} format matcher.abstract FormatPlugin
abstract boolean
isFileReadable
(DrillFileSystem fs, org.apache.hadoop.fs.FileStatus status) abstract DrillTable
isReadable
(DrillFileSystem fs, FileSelection selection, FileSystemPlugin fsPlugin, String storageEngineName, SchemaConfig schemaConfig) int
priority()
Priority of specific format matcher to be applied.abstract boolean
-
Field Details
-
MEDIUM_PRIORITY
public static final int MEDIUM_PRIORITY- See Also:
-
HIGH_PRIORITY
public static final int HIGH_PRIORITY- See Also:
-
-
Constructor Details
-
FormatMatcher
public FormatMatcher()
-
-
Method Details
-
supportDirectoryReads
public abstract boolean supportDirectoryReads() -
isReadable
public abstract DrillTable isReadable(DrillFileSystem fs, FileSelection selection, FileSystemPlugin fsPlugin, String storageEngineName, SchemaConfig schemaConfig) throws IOException - Throws:
IOException
-
isFileReadable
public abstract boolean isFileReadable(DrillFileSystem fs, org.apache.hadoop.fs.FileStatus status) throws IOException - Throws:
IOException
-
getFormatPlugin
-
priority
public int priority()Priority of specific format matcher to be applied. Can be used for the case when several formats can match the format, but matchers with some more specific requirements should be applied at first.- Returns:
- priority of {@link this} format matcher.
-
getFormatLocationTransformer
ReturnsFormatLocationTransformer
instance relevant for {@link this} format matcher.- Returns:
FormatLocationTransformer
instance
-