Package org.apache.avro
Class Conversions.DurationConversion
- Enclosing class:
Conversions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromFixed
(GenericFixed value, Schema schema, LogicalType type) Return the Java class representing the logical type.Return the logical type this class converts.toFixed
(TimePeriod value, Schema schema, LogicalType type) Methods inherited from class org.apache.avro.Conversion
adjustAndSetValue, fromArray, fromBoolean, fromBytes, fromCharSequence, fromDouble, fromEnumSymbol, fromFloat, fromInt, fromLong, fromMap, fromRecord, toArray, toBoolean, toBytes, toCharSequence, toDouble, toEnumSymbol, toFloat, toInt, toLong, toMap, toRecord
-
Constructor Details
-
DurationConversion
public DurationConversion()
-
-
Method Details
-
getConvertedType
Description copied from class:Conversion
Return the Java class representing the logical type.- Specified by:
getConvertedType
in classConversion<TimePeriod>
- Returns:
- a Java class returned by from methods and accepted by to methods
-
getLogicalTypeName
Description copied from class:Conversion
Return the logical type this class converts.- Specified by:
getLogicalTypeName
in classConversion<TimePeriod>
- Returns:
- a String logical type name
-
getRecommendedSchema
- Overrides:
getRecommendedSchema
in classConversion<TimePeriod>
-
fromFixed
- Overrides:
fromFixed
in classConversion<TimePeriod>
-
toFixed
- Overrides:
toFixed
in classConversion<TimePeriod>
-