public abstract static class LogicalTypes.PassThroughLogicalType<T> extends java.lang.Object implements Schema.LogicalType<T,T>
| Modifier | Constructor and Description |
|---|---|
protected |
PassThroughLogicalType(java.lang.String identifier,
java.lang.String argument,
Schema.FieldType fieldType) |
| 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.
|
T |
toBaseType(T input)
Convert the input Java type to one appropriate for the base
Schema.FieldType. |
T |
toInputType(T base)
Convert the Java type used by the base
Schema.FieldType to the input type. |
protected PassThroughLogicalType(java.lang.String identifier,
java.lang.String argument,
Schema.FieldType fieldType)
public java.lang.String getIdentifier()
Schema.LogicalTypegetIdentifier in interface Schema.LogicalType<T,T>public java.lang.String getArgument()
Schema.LogicalTypegetArgument in interface Schema.LogicalType<T,T>public Schema.FieldType getBaseType()
Schema.LogicalTypeSchema.FieldType used to store values of this type.getBaseType in interface Schema.LogicalType<T,T>public T toBaseType(T input)
Schema.LogicalTypeSchema.FieldType.toBaseType in interface Schema.LogicalType<T,T>public T toInputType(T base)
Schema.LogicalTypeSchema.FieldType to the input type.toInputType in interface Schema.LogicalType<T,T>