Class VariableString
java.lang.Object
org.apache.beam.sdk.schemas.logicaltypes.PassThroughLogicalType<String>
org.apache.beam.sdk.schemas.logicaltypes.VariableString
- All Implemented Interfaces:
Serializable
,Schema.LogicalType<String,
String>
A LogicalType representing a variable-length string with specified maximum length.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
getName()
static VariableString
of
(int maxStringLength) Return an instance of VariableString with specified max string length.static VariableString
Return an instance of VariableString with specified max string length.toInputType
(String base) Convert the Java type used by the baseSchema.FieldType
to the input type.toString()
Methods inherited from class org.apache.beam.sdk.schemas.logicaltypes.PassThroughLogicalType
getArgument, getArgumentType, getBaseType, getIdentifier, toBaseType
-
Field Details
-
IDENTIFIER
-
-
Method Details
-
of
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
Return an instance of VariableString with specified max string length. -
getMaxLength
public int getMaxLength() -
getName
-
toInputType
Description copied from interface:Schema.LogicalType
Convert the Java type used by the baseSchema.FieldType
to the input type.- Specified by:
toInputType
in interfaceSchema.LogicalType<String,
String> - Overrides:
toInputType
in classPassThroughLogicalType<String>
-
toString
-