Interface ContentIdentifier
@PolarisImmutable
public interface ContentIdentifier
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringstatic org.apache.polaris.persistence.nosql.metastore.ImmutableContentIdentifier.Builderbuilder()default ContentIdentifierelements()static ContentIdentifieridentifier(String... elements) static ContentIdentifieridentifier(String[] namespace, String name) static ContentIdentifieridentifier(List<String> elements) static ContentIdentifieridentifierFor(org.apache.iceberg.catalog.Namespace namespace) static ContentIdentifieridentifierFor(org.apache.iceberg.catalog.TableIdentifier identifier) static ContentIdentifieridentifierFor(org.apache.polaris.service.types.PolicyIdentifier identifier) static ContentIdentifieridentifierFromLocationString(String locationString) Constructs aContentIdentifierfrom a storage location without the scheme.static ContentIdentifierindexKeyToIdentifier(org.apache.polaris.persistence.nosql.api.index.IndexKey indexKey) static org.apache.polaris.persistence.nosql.metastore.ImmutableContentIdentifier.BuilderindexKeyToIdentifierBuilder(org.apache.polaris.persistence.nosql.api.index.IndexKey indexKey) static org.apache.polaris.persistence.nosql.metastore.ImmutableContentIdentifier.BuilderindexKeyToIdentifierBuilder(org.apache.polaris.persistence.nosql.api.index.IndexKey indexKey, org.apache.polaris.persistence.nosql.metastore.ImmutableContentIdentifier.Builder builder) default booleanisEmpty()default StringleafName()default intlength()default ContentIdentifierparent()default booleanstartsWith(ContentIdentifier other) default org.apache.polaris.persistence.nosql.api.index.IndexKey
-
Method Details
-
elements
-
identifier
-
identifier
-
identifier
-
identifierFor
static ContentIdentifier identifierFor(org.apache.polaris.service.types.PolicyIdentifier identifier) -
identifierFor
-
identifierFor
-
identifierFromLocationString
Constructs aContentIdentifierfrom a storage location without the scheme.This is used for the locations index for location-overlap checks.
Valid inputs follow the values returned by
StorageLocation.of(previousBaseLocation).withoutScheme(), which can, in case of "file" locations, contain system-specific file separators. -
parent
-
isEmpty
default boolean isEmpty() -
length
default int length() -
leafName
-
childOf
-
asDotDelimitedString
-
builder
static org.apache.polaris.persistence.nosql.metastore.ImmutableContentIdentifier.Builder builder() -
toIndexKey
default org.apache.polaris.persistence.nosql.api.index.IndexKey toIndexKey() -
startsWith
-
indexKeyToIdentifierBuilder
@CanIgnoreReturnValue static org.apache.polaris.persistence.nosql.metastore.ImmutableContentIdentifier.Builder indexKeyToIdentifierBuilder(org.apache.polaris.persistence.nosql.api.index.IndexKey indexKey, org.apache.polaris.persistence.nosql.metastore.ImmutableContentIdentifier.Builder builder) -
indexKeyToIdentifierBuilder
static org.apache.polaris.persistence.nosql.metastore.ImmutableContentIdentifier.Builder indexKeyToIdentifierBuilder(org.apache.polaris.persistence.nosql.api.index.IndexKey indexKey) -
indexKeyToIdentifier
static ContentIdentifier indexKeyToIdentifier(org.apache.polaris.persistence.nosql.api.index.IndexKey indexKey)
-