public class NanosDuration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IDENTIFIER |
protected Schema |
schema |
Constructor and Description |
---|
NanosDuration() |
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.time.Duration input)
Convert the input type to the type Java type used by the base
Schema.FieldType . |
java.time.Duration |
toInputType(Row row)
Convert the Java type used by the base
Schema.FieldType to the input type. |
public static final java.lang.String IDENTIFIER
protected final Schema schema
public Row toBaseType(java.time.Duration input)
Schema.LogicalType
Schema.FieldType
.public java.time.Duration toInputType(Row row)
Schema.LogicalType
Schema.FieldType
to the input type.public java.lang.String getIdentifier()
Schema.LogicalType
getIdentifier
in interface Schema.LogicalType<T,Row>
public Schema.FieldType getArgumentType()
Schema.LogicalType
null
indicates this logical
type is not parameterized by an argument.getArgumentType
in interface Schema.LogicalType<T,Row>
public java.lang.String getArgument()
Schema.LogicalType
getArgument
in interface Schema.LogicalType<T,Row>
public Schema.FieldType getBaseType()
Schema.LogicalType
Schema.FieldType
used to store values of this type.getBaseType
in interface Schema.LogicalType<T,Row>