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 SummaryFields
- 
Method SummaryModifier 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.PassThroughLogicalTypegetArgument, getArgumentType, getBaseType, getIdentifier, toBaseType
- 
Field Details- 
IDENTIFIER
 
- 
- 
Method Details- 
ofReturn an instance of FixedString with specified string length.The name, if set, refers to the TYPE name in the underlying database, for example, CHAR. 
- 
ofReturn an instance of FixedString with specified string length.
- 
getLengthpublic int getLength()
- 
getName
- 
toInputTypeDescription copied from interface:Schema.LogicalTypeConvert the Java type used by the baseSchema.FieldTypeto the input type.- Specified by:
- toInputTypein interface- Schema.LogicalType<String,- String> 
- Overrides:
- toInputTypein class- PassThroughLogicalType<String>
 
- 
toString
 
-