public class MicrosInstant extends java.lang.Object implements Schema.LogicalType<java.time.Instant,Row>
WARNING: This logical type exists solely for interoperability with other type systems such as
SQL and other Beam SDKs. It should never be used in a native Java context where the java.time.Instant instances it describes may have higher than microsecond precision. Ignoring
this will likely result in an AssertionError at pipeline execution time.
For a more faithful logical type to use with java.time.Instant, see NanosInstant.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IDENTIFIER |
| Constructor and Description |
|---|
MicrosInstant() |
| Modifier and Type | Method and Description |
|---|---|
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.Instant input)
Convert the input type to the type Java type used by the base
Schema.FieldType. |
java.time.Instant |
toInputType(Row row)
Convert the Java type used by the base
Schema.FieldType to the input type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgumentpublic static final java.lang.String IDENTIFIER
public Row toBaseType(java.time.Instant input)
Schema.LogicalTypeSchema.FieldType.toBaseType in interface Schema.LogicalType<java.time.Instant,Row>public java.time.Instant toInputType(Row row)
Schema.LogicalTypeSchema.FieldType to the input type.toInputType in interface Schema.LogicalType<java.time.Instant,Row>public java.lang.String getIdentifier()
Schema.LogicalTypegetIdentifier in interface Schema.LogicalType<java.time.Instant,Row>public Schema.FieldType getArgumentType()
Schema.LogicalTypenull indicates this logical
type is not parameterized by an argument.getArgumentType in interface Schema.LogicalType<java.time.Instant,Row>public Schema.FieldType getBaseType()
Schema.LogicalTypeSchema.FieldType used to store values of this type.getBaseType in interface Schema.LogicalType<java.time.Instant,Row>