Package io.delta.kernel.types
Class CollationIdentifier
Object
io.delta.kernel.types.CollationIdentifier
Identifies collation for string type.
Collation identifiers
- Since:
- 3.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CollationIdentifierThe default Spark UTF8_BINARY collation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCollation identifiers are identical when the provider, name, and version are the same.static CollationIdentifierfromString(String identifier) getName()booleantoString()
-
Field Details
-
SPARK_UTF8_BINARY
The default Spark UTF8_BINARY collation.
-
-
Method Details
-
getProvider
- Returns:
- collation provider.
-
getName
- Returns:
- collation name.
-
getVersion
- Returns:
- collation version.
-
isSparkUTF8BinaryCollation
public boolean isSparkUTF8BinaryCollation()- Returns:
- if this collation is the default Spark UTF8_BINARY collation.
-
fromString
- Parameters:
identifier- collation identifier in string form of
PROVIDER.COLLATION_NAME[.COLLATION_VERSION].- Returns:
- appropriate collation identifier object
-
equals
Collation identifiers are identical when the provider, name, and version are the same. -
toStringWithoutVersion
- Returns:
- collation identifier in form of
PROVIDER.COLLATION_NAME.
-
toString
-