public class VariableBytes extends PassThroughLogicalType<byte[]>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IDENTIFIER |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxLength() |
@Nullable java.lang.String |
getName() |
static VariableBytes |
of(int maxByteArrayLength)
Return an instance of VariableBytes with specified max byte array length.
|
static VariableBytes |
of(@Nullable java.lang.String name,
int maxByteArrayLength)
Return an instance of VariableBytes with specified max byte array length.
|
byte[] |
toInputType(byte[] base)
Convert the Java type used by the base
Schema.FieldType to the input type. |
java.lang.String |
toString() |
getArgument, getArgumentType, getBaseType, getIdentifier, toBaseTypepublic static VariableBytes of(@Nullable java.lang.String name, int maxByteArrayLength)
The name, if set, refers to the TYPE name in the underlying database, for example, VARBINARY and LONGVARBINARY.
public static VariableBytes of(int maxByteArrayLength)
public int getMaxLength()
public @Nullable java.lang.String getName()
public byte[] toInputType(byte[] base)
Schema.LogicalTypeSchema.FieldType to the input type.toInputType in interface Schema.LogicalType<byte[],byte[]>toInputType in class PassThroughLogicalType<byte[]>public java.lang.String toString()
toString in class java.lang.Object