Class VariableString

  • All Implemented Interfaces:
    java.io.Serializable, Schema.LogicalType<java.lang.String,​java.lang.String>

    public class VariableString
    extends PassThroughLogicalType<java.lang.String>
    A LogicalType representing a variable-length string with specified maximum length.
    See Also:
    Serialized Form
    • Field Detail

      • IDENTIFIER

        public static final java.lang.String IDENTIFIER
    • Method Detail

      • of

        public static VariableString of​(@Nullable java.lang.String name,
                                        int maxStringLength)
        Return an instance of VariableString with specified max string length.

        The name, if set, refers to the TYPE name in the underlying database, for example, VARCHAR and LONGVARCHAR.

      • of

        public static VariableString of​(int maxStringLength)
        Return an instance of VariableString with specified max string length.
      • getMaxLength

        public int getMaxLength()
      • getName

        public @Nullable java.lang.String getName()
      • toString

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