Class AvroJavaTimeConversions.TimestampMicrosConversion
java.lang.Object
org.apache.avro.Conversion<Instant>
org.apache.beam.sdk.extensions.avro.schemas.utils.AvroJavaTimeConversions.TimestampMicrosConversion
- Enclosing class:
AvroJavaTimeConversions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromLong
(Long microsFromEpoch, Schema schema, LogicalType type) toLong
(Instant instant, Schema schema, LogicalType type) Methods inherited from class org.apache.avro.Conversion
adjustAndSetValue, fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFixed, fromFloat, fromInt, fromMap, fromRecord, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toInt, toMap, toRecord
-
Constructor Details
-
TimestampMicrosConversion
public TimestampMicrosConversion()
-
-
Method Details
-
getConvertedType
- Specified by:
getConvertedType
in classConversion<Instant>
-
getLogicalTypeName
- Specified by:
getLogicalTypeName
in classConversion<Instant>
-
fromLong
- Overrides:
fromLong
in classConversion<Instant>
-
toLong
- Overrides:
toLong
in classConversion<Instant>
-
getRecommendedSchema
- Overrides:
getRecommendedSchema
in classConversion<Instant>
-