Class AvroJodaTimeConversions.TimestampConversion
java.lang.Object
org.apache.avro.Conversion<DateTime>
org.apache.beam.sdk.extensions.avro.schemas.utils.AvroJodaTimeConversions.TimestampConversion
- Enclosing class:
AvroJodaTimeConversions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromLong
(Long millisFromEpoch, Schema schema, LogicalType type) toLong
(DateTime 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, getRecommendedSchema, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFixed, toFloat, toInt, toMap, toRecord
-
Constructor Details
-
TimestampConversion
public TimestampConversion()
-
-
Method Details
-
getConvertedType
- Specified by:
getConvertedType
in classConversion<DateTime>
-
getLogicalTypeName
- Specified by:
getLogicalTypeName
in classConversion<DateTime>
-
fromLong
- Overrides:
fromLong
in classConversion<DateTime>
-
toLong
- Overrides:
toLong
in classConversion<DateTime>
-