public class SchemaLogicalType extends java.lang.Object implements Schema.LogicalType<Schema,byte[]>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IDENTIFIER |
Constructor and Description |
---|
SchemaLogicalType() |
Modifier and Type | Method and Description |
---|---|
@Nullable Schema.FieldType |
getArgumentType()
A schema type representing how to interpret the argument.
|
Schema.FieldType |
getBaseType()
The base
Schema.FieldType used to store values of this type. |
java.lang.String |
getIdentifier()
The unique identifier for this type.
|
byte[] |
toBaseType(Schema input)
Convert the input type to the type Java type used by the base
Schema.FieldType . |
Schema |
toInputType(byte[] base)
Convert the Java type used by the base
Schema.FieldType to the input type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgument
public static final java.lang.String IDENTIFIER
public java.lang.String getIdentifier()
Schema.LogicalType
getIdentifier
in interface Schema.LogicalType<Schema,byte[]>
public @Nullable Schema.FieldType getArgumentType()
Schema.LogicalType
null
indicates this logical
type is not parameterized by an argument.getArgumentType
in interface Schema.LogicalType<Schema,byte[]>
public Schema.FieldType getBaseType()
Schema.LogicalType
Schema.FieldType
used to store values of this type.getBaseType
in interface Schema.LogicalType<Schema,byte[]>
public byte[] toBaseType(Schema input)
Schema.LogicalType
Schema.FieldType
.toBaseType
in interface Schema.LogicalType<Schema,byte[]>
public Schema toInputType(byte[] base)
Schema.LogicalType
Schema.FieldType
to the input type.toInputType
in interface Schema.LogicalType<Schema,byte[]>