Class EntityNameValidator
java.lang.Object
org.apache.polaris.service.catalog.validation.EntityNameValidator
Validates entity names provided by clients at the REST layer (tables, views, namespaces, generic
tables, ...). A valid name:
- is not null or empty;
- is not
.or..; - does not contain ISO control characters (U+0000–U+001F or U+007F–U+009F);
- does not contain any of:
/ \ : * ? " < > | # + `; - does not start or end with whitespace.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateIdentifier(org.apache.iceberg.catalog.TableIdentifier identifier) static voidvalidateName(String name) Validates a single entity name (table, view, namespace level, ...).static voidvalidateNamespace(org.apache.iceberg.catalog.Namespace namespace) Validates each level of a namespace.
-
Method Details
-
validateName
Validates a single entity name (table, view, namespace level, ...). -
validateNamespace
public static void validateNamespace(org.apache.iceberg.catalog.Namespace namespace) Validates each level of a namespace. -
validateIdentifier
public static void validateIdentifier(org.apache.iceberg.catalog.TableIdentifier identifier)
-