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 TypeMethodDescriptionboolean
canTransform
(String location) Checks whether specified location can be transformed.transform
(String location, Function<String, FileSelection> selectionFactory) Transforms specified location and returnsFileSelection
instance with updated location.
-
Method Details
-
canTransform
Checks whether specified location can be transformed.- Parameters:
location
- location to check- Returns:
true
if specified location can be transformed,false
otherwise
-
transform
Transforms specified location and returnsFileSelection
instance with updated location.- Parameters:
location
- location to transformselectionFactory
- file selection factory- Returns:
FileSelection
instance with updated location
-