Class FixedString
java.lang.Object
org.apache.beam.sdk.schemas.logicaltypes.PassThroughLogicalType<String>
org.apache.beam.sdk.schemas.logicaltypes.FixedString
- All Implemented Interfaces:
Serializable,Schema.LogicalType<String,String>
A LogicalType representing a fixed-length string.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintgetName()static FixedStringof(int stringLength) Return an instance of FixedString with specified string length.static FixedStringReturn an instance of FixedString with specified 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 FixedString with specified string length.The name, if set, refers to the TYPE name in the underlying database, for example, CHAR.
-
of
Return an instance of FixedString with specified string length. -
getLength
public int getLength() -
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
-