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) |
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)
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
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>