Package org.apache.iceberg.util
Class LocationUtil
java.lang.Object
org.apache.iceberg.util.LocationUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringstripTrailingSlash(String path) static StringtableLocation(TableIdentifier tableIdentifier, boolean useUniqueLocation) Returns a path component derived from thetableIdentifier, used as part of the table location URI.
-
Method Details
-
stripTrailingSlash
-
tableLocation
Returns a path component derived from thetableIdentifier, used as part of the table location URI.If
useUniqueLocationistrue, the returned component will include a random UUID suffix. Otherwise, the plain table name is returned.- Parameters:
tableIdentifier- Iceberg table identifieruseUniqueLocation- whether to ensure uniqueness- Returns:
- a string representing the table name component for a location URI
-