Class DataType.CustomType

  • Enclosing class:
    DataType

    public static class DataType.CustomType
    extends DataType
    A "custom" type is a type that cannot be expressed as a CQL type.

    Each custom type is merely identified by the fully qualified #getCustomTypeClassName() class name that represents this type server-side.

    The driver provides a minimal support for such types through instances of this class.

    A codec for custom types can be obtained via TypeCodec.custom(DataType.CustomType).

    • Method Detail

      • isFrozen

        public boolean isFrozen()
        Description copied from class: DataType
        Returns whether this data type is frozen.

        This applies to User Defined Types, tuples and nested collections. Frozen types are serialized as a single value in Cassandra's storage engine, whereas non-frozen types are stored in a form that allows updates to individual subfields.

        Specified by:
        isFrozen in class DataType
        Returns:
        whether this data type is frozen.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public final boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object