Class CollationIdentifier

Object
io.delta.kernel.types.CollationIdentifier

@Evolving public class CollationIdentifier extends Object
Identifies collation for string type. Collation identifiers
Since:
3.3.0
  • Field Details

    • SPARK_UTF8_BINARY

      public static final CollationIdentifier SPARK_UTF8_BINARY
      The default Spark UTF8_BINARY collation.
  • Method Details

    • getProvider

      public String getProvider()
      Returns:
      collation provider.
    • getName

      public String getName()
      Returns:
      collation name.
    • getVersion

      public Optional<String> getVersion()
      Returns:
      collation version.
    • isSparkUTF8BinaryCollation

      public boolean isSparkUTF8BinaryCollation()
      Returns:
      if this collation is the default Spark UTF8_BINARY collation.
    • fromString

      public static CollationIdentifier fromString(String identifier)
      Parameters:
      identifier - collation identifier in string form of
      PROVIDER.COLLATION_NAME[.COLLATION_VERSION].
      Returns:
      appropriate collation identifier object
    • equals

      public boolean equals(Object o)
      Collation identifiers are identical when the provider, name, and version are the same.
      Overrides:
      equals in class Object
    • toStringWithoutVersion

      public String toStringWithoutVersion()
      Returns:
      collation identifier in form of PROVIDER.COLLATION_NAME.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      collation identifier in form of PROVIDER.COLLATION_NAME[.COLLATION_VERSION]