Class LocationUtil

java.lang.Object
org.apache.iceberg.util.LocationUtil

public class LocationUtil extends Object
  • Method Details

    • stripTrailingSlash

      public static String stripTrailingSlash(String path)
    • tableLocation

      public static String tableLocation(TableIdentifier tableIdentifier, boolean useUniqueLocation)
      Returns a path component derived from the tableIdentifier, used as part of the table location URI.

      If useUniqueLocation is true, the returned component will include a random UUID suffix. Otherwise, the plain table name is returned.

      Parameters:
      tableIdentifier - Iceberg table identifier
      useUniqueLocation - whether to ensure uniqueness
      Returns:
      a string representing the table name component for a location URI