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.LogicalTypeSchema.FieldType to the input type.public java.lang.String getIdentifier()
Schema.LogicalTypegetIdentifier in interface Schema.LogicalType<T,Row>public Schema.FieldType getArgumentType()
Schema.LogicalTypegetArgumentType in interface Schema.LogicalType<T,Row>public java.lang.String getArgument()
Schema.LogicalTypegetArgument in interface Schema.LogicalType<T,Row>public Schema.FieldType getBaseType()
Schema.LogicalTypeSchema.FieldType used to store values of this type.getBaseType in interface Schema.LogicalType<T,Row>