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, waitgetArgumentpublic static final java.lang.String IDENTIFIER
public java.lang.String getIdentifier()
Schema.LogicalTypegetIdentifier in interface Schema.LogicalType<Schema,byte[]>public @Nullable Schema.FieldType getArgumentType()
Schema.LogicalTypenull indicates this logical
type is not parameterized by an argument.getArgumentType in interface Schema.LogicalType<Schema,byte[]>public Schema.FieldType getBaseType()
Schema.LogicalTypeSchema.FieldType used to store values of this type.getBaseType in interface Schema.LogicalType<Schema,byte[]>public byte[] toBaseType(Schema input)
Schema.LogicalTypeSchema.FieldType.toBaseType in interface Schema.LogicalType<Schema,byte[]>public Schema toInputType(byte[] base)
Schema.LogicalTypeSchema.FieldType to the input type.toInputType in interface Schema.LogicalType<Schema,byte[]>