@Experimental(value=SCHEMAS) 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.LogicalType
getIdentifier
in interface Schema.LogicalType<java.util.UUID,Row>
public Schema.FieldType getArgumentType()
Schema.LogicalType
null
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.LogicalType
getArgument
in interface Schema.LogicalType<java.util.UUID,Row>
public Schema.FieldType getBaseType()
Schema.LogicalType
Schema.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.LogicalType
Schema.FieldType
.toBaseType
in interface Schema.LogicalType<java.util.UUID,Row>
public java.util.UUID toInputType(Row base)
Schema.LogicalType
Schema.FieldType
to the input type.toInputType
in interface Schema.LogicalType<java.util.UUID,Row>