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:
getConvertedTypein classConversion<Instant>
-
getLogicalTypeName
- Specified by:
getLogicalTypeNamein classConversion<Instant>
-
fromLong
- Overrides:
fromLongin classConversion<Instant>
-
toLong
- Overrides:
toLongin classConversion<Instant>
-
getRecommendedSchema
- Overrides:
getRecommendedSchemain classConversion<Instant>
-