public static class LogicalTypes.FixedBytes extends java.lang.Object implements Schema.LogicalType<byte[],byte[]>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IDENTIFIER |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArgument()
An optional argument to configure the type.
|
Schema.FieldType |
getBaseType()
The base
Schema.FieldType used to store values of this type. |
java.lang.String |
getIdentifier()
The unique identifier for this type.
|
int |
getLength() |
static LogicalTypes.FixedBytes |
of(int byteArraySize) |
byte[] |
toBaseType(byte[] input)
Convert the input Java type to one appropriate for the base
Schema.FieldType . |
byte[] |
toInputType(byte[] base)
Convert the Java type used by the base
Schema.FieldType to the input type. |
public static final java.lang.String IDENTIFIER
public static LogicalTypes.FixedBytes of(int byteArraySize)
public int getLength()
public java.lang.String getIdentifier()
Schema.LogicalType
getIdentifier
in interface Schema.LogicalType<byte[],byte[]>
public java.lang.String getArgument()
Schema.LogicalType
getArgument
in interface Schema.LogicalType<byte[],byte[]>
public Schema.FieldType getBaseType()
Schema.LogicalType
Schema.FieldType
used to store values of this type.getBaseType
in interface Schema.LogicalType<byte[],byte[]>
public byte[] toBaseType(byte[] input)
Schema.LogicalType
Schema.FieldType
.toBaseType
in interface Schema.LogicalType<byte[],byte[]>
public byte[] toInputType(byte[] base)
Schema.LogicalType
Schema.FieldType
to the input type.toInputType
in interface Schema.LogicalType<byte[],byte[]>