public class VariableString extends PassThroughLogicalType<java.lang.String>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IDENTIFIER |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxLength() |
@Nullable java.lang.String |
getName() |
static VariableString |
of(int maxStringLength)
Return an instance of VariableString with specified max string length.
|
static VariableString |
of(@Nullable java.lang.String name,
int maxStringLength)
Return an instance of VariableString with specified max string length.
|
java.lang.String |
toInputType(java.lang.String base)
Convert the Java type used by the base
Schema.FieldType to the input type. |
java.lang.String |
toString() |
getArgument, getArgumentType, getBaseType, getIdentifier, toBaseTypepublic static VariableString of(@Nullable java.lang.String name, int maxStringLength)
The name, if set, refers to the TYPE name in the underlying database, for example, VARCHAR and LONGVARCHAR.
public static VariableString of(int maxStringLength)
public int getMaxLength()
public @Nullable java.lang.String getName()
public java.lang.String toInputType(java.lang.String base)
Schema.LogicalTypeSchema.FieldType to the input type.toInputType in interface Schema.LogicalType<java.lang.String,java.lang.String>toInputType in class PassThroughLogicalType<java.lang.String>public java.lang.String toString()
toString in class java.lang.Object