Class VariableBytes
java.lang.Object
org.apache.beam.sdk.schemas.logicaltypes.PassThroughLogicalType<byte[]>
org.apache.beam.sdk.schemas.logicaltypes.VariableBytes
- All Implemented Interfaces:
Serializable,Schema.LogicalType<byte[],byte[]>
A LogicalType representing a variable-length byte array with specified maximum length.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintgetName()static VariableBytesof(int maxByteArrayLength) Return an instance of VariableBytes with specified max byte array length.static VariableBytesReturn an instance of VariableBytes with specified max byte array length.byte[]toInputType(byte[] 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 VariableBytes with specified max byte array length.The name, if set, refers to the TYPE name in the underlying database, for example, VARBINARY and LONGVARBINARY.
-
of
Return an instance of VariableBytes with specified max byte array length. -
getMaxLength
public int getMaxLength() -
getName
-
toInputType
public byte[] toInputType(byte[] base) Description copied from interface:Schema.LogicalTypeConvert the Java type used by the baseSchema.FieldTypeto the input type.- Specified by:
toInputTypein interfaceSchema.LogicalType<byte[],byte[]> - Overrides:
toInputTypein classPassThroughLogicalType<byte[]>
-
toString
-