public class UuidLogicalType extends java.lang.Object implements Schema.LogicalType<java.util.UUID,Row>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IDENTIFIER |
static java.lang.String |
LEAST_SIGNIFICANT_BITS_FIELD_NAME |
static java.lang.String |
MOST_SIGNIFICANT_BITS_FIELD_NAME |
static Schema |
UUID_SCHEMA |
| Constructor and Description |
|---|
UuidLogicalType() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArgument()
An optional argument to configure the type.
|
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.
|
Row |
toBaseType(java.util.UUID input)
Convert the input type to the type Java type used by the base
Schema.FieldType. |
java.util.UUID |
toInputType(Row base)
Convert the Java type used by the base
Schema.FieldType to the input type. |
public static final java.lang.String IDENTIFIER
public static final java.lang.String LEAST_SIGNIFICANT_BITS_FIELD_NAME
public static final java.lang.String MOST_SIGNIFICANT_BITS_FIELD_NAME
public static final Schema UUID_SCHEMA
public java.lang.String getIdentifier()
Schema.LogicalTypegetIdentifier in interface Schema.LogicalType<java.util.UUID,Row>public Schema.FieldType getArgumentType()
Schema.LogicalTypenull indicates this logical
type is not parameterized by an argument.getArgumentType in interface Schema.LogicalType<java.util.UUID,Row>public java.lang.String getArgument()
Schema.LogicalTypegetArgument in interface Schema.LogicalType<java.util.UUID,Row>public Schema.FieldType getBaseType()
Schema.LogicalTypeSchema.FieldType used to store values of this type.getBaseType in interface Schema.LogicalType<java.util.UUID,Row>public Row toBaseType(java.util.UUID input)
Schema.LogicalTypeSchema.FieldType.toBaseType in interface Schema.LogicalType<java.util.UUID,Row>public java.util.UUID toInputType(Row base)
Schema.LogicalTypeSchema.FieldType to the input type.toInputType in interface Schema.LogicalType<java.util.UUID,Row>