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