Package org.apache.drill.exec.store.dfs
Interface FormatLocationTransformer
- All Known Implementing Classes:
IcebergFormatLocationTransformer
public interface FormatLocationTransformer
Provides the ability to transform format location before creating
FileSelection if required.
For example, a specified location can have some metadata info,
so location transformer implementation may extract this metadata info,
and create FileSelection with the actual location.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanTransform(String location) Checks whether specified location can be transformed.transform(String location, Function<String, FileSelection> selectionFactory) Transforms specified location and returnsFileSelectioninstance with updated location.
-
Method Details
-
canTransform
Checks whether specified location can be transformed.- Parameters:
location- location to check- Returns:
trueif specified location can be transformed,falseotherwise
-
transform
Transforms specified location and returnsFileSelectioninstance with updated location.- Parameters:
location- location to transformselectionFactory- file selection factory- Returns:
FileSelectioninstance with updated location
-