Class AvroJavaTimeConversions.TimestampMillisConversion
java.lang.Object
org.apache.avro.Conversion<Instant>
org.apache.beam.sdk.extensions.avro.schemas.utils.AvroJavaTimeConversions.TimestampMillisConversion
- Enclosing class:
AvroJavaTimeConversions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromLong
(Long millisFromEpoch, Schema schema, LogicalType type) toLong
(Instant timestamp, 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
-
TimestampMillisConversion
public TimestampMillisConversion()
-
-
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>
-