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 TypeMethodDescriptionintgetName()static VariableStringof(int maxStringLength) Return an instance of VariableString with specified max string length.static VariableStringReturn an instance of VariableString with specified max string length.toInputType(String base) Convert the Java type used by the baseSchema.FieldTypeto 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.LogicalTypeConvert the Java type used by the baseSchema.FieldTypeto the input type.- Specified by:
toInputTypein interfaceSchema.LogicalType<String,String> - Overrides:
toInputTypein classPassThroughLogicalType<String>
-
toString
-