public class FixedString extends PassThroughLogicalType<java.lang.String>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IDENTIFIER |
Modifier and Type | Method and Description |
---|---|
int |
getLength() |
@Nullable java.lang.String |
getName() |
static FixedString |
of(int stringLength)
Return an instance of FixedString with specified string length.
|
static FixedString |
of(@Nullable java.lang.String name,
int stringLength)
Return an instance of FixedString with specified 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, toBaseType
public static FixedString of(@Nullable java.lang.String name, int stringLength)
The name, if set, refers to the TYPE name in the underlying database, for example, CHAR.
public static FixedString of(int stringLength)
public int getLength()
public @Nullable java.lang.String getName()
public java.lang.String toInputType(java.lang.String base)
Schema.LogicalType
Schema.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