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 Details

    • canTransform

      boolean canTransform(String location)
      Checks whether specified location can be transformed.
      Parameters:
      location - location to check
      Returns:
      true if specified location can be transformed, false otherwise
    • transform

      FileSelection transform(String location, Function<String,FileSelection> selectionFactory)
      Transforms specified location and returns FileSelection instance with updated location.
      Parameters:
      location - location to transform
      selectionFactory - file selection factory
      Returns:
      FileSelection instance with updated location