public class FixedBytes extends PassThroughLogicalType<byte[]>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IDENTIFIER |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength() |
@Nullable java.lang.String |
getName() |
static FixedBytes |
of(int byteArrayLength)
Return an instance of FixedBytes with specified byte array length.
|
static FixedBytes |
of(@Nullable java.lang.String name,
int byteArrayLength)
Return an instance of FixedBytes with specified byte array length.
|
byte[] |
toBaseType(byte[] input)
Convert the input type to the type Java type used by the base
Schema.FieldType. |
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, getIdentifierpublic static FixedBytes of(@Nullable java.lang.String name, int byteArrayLength)
The name, if set, refers to the TYPE name in the underlying database, for example, BINARY.
public static FixedBytes of(int byteArrayLength)
public int getLength()
public @Nullable java.lang.String getName()
public byte[] toBaseType(byte[] input)
Schema.LogicalTypeSchema.FieldType.toBaseType in interface Schema.LogicalType<byte[],byte[]>toBaseType in class PassThroughLogicalType<byte[]>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