Class MicrosInstant
java.lang.Object
org.apache.beam.sdk.schemas.logicaltypes.MicrosInstant
- All Implemented Interfaces:
Serializable,Schema.LogicalType<Instant,Row>
A timestamp represented as microseconds since the epoch.
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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA schema type representing how to interpret the argument.The baseSchema.FieldTypeused to store values of this type.The unique identifier for this type.toBaseType(Instant input) Convert the input type to the type Java type used by the baseSchema.FieldType.toInputType(Row row) Convert the Java type used by the baseSchema.FieldTypeto the input type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.beam.sdk.schemas.Schema.LogicalType
getArgument
-
Field Details
-
IDENTIFIER
-
-
Constructor Details
-
MicrosInstant
public MicrosInstant()
-
-
Method Details
-
toBaseType
Description copied from interface:Schema.LogicalTypeConvert the input type to the type Java type used by the baseSchema.FieldType.- Specified by:
toBaseTypein interfaceSchema.LogicalType<Instant,Row>
-
toInputType
Description copied from interface:Schema.LogicalTypeConvert the Java type used by the baseSchema.FieldTypeto the input type.- Specified by:
toInputTypein interfaceSchema.LogicalType<Instant,Row>
-
getIdentifier
Description copied from interface:Schema.LogicalTypeThe unique identifier for this type.- Specified by:
getIdentifierin interfaceSchema.LogicalType<Instant,Row>
-
getArgumentType
Description copied from interface:Schema.LogicalTypeA schema type representing how to interpret the argument.nullindicates this logical type is not parameterized by an argument.- Specified by:
getArgumentTypein interfaceSchema.LogicalType<Instant,Row>
-
getBaseType
Description copied from interface:Schema.LogicalTypeThe baseSchema.FieldTypeused to store values of this type.- Specified by:
getBaseTypein interfaceSchema.LogicalType<Instant,Row>
-