Package org.apache.avro
Class Conversions.DurationConversion
- Enclosing class:
Conversions
-
Constructor Summary
Constructors -
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:ConversionReturn the Java class representing the logical type.- Specified by:
getConvertedTypein classConversion<TimePeriod>- Returns:
- a Java class returned by from methods and accepted by to methods
-
getLogicalTypeName
Description copied from class:ConversionReturn the logical type this class converts.- Specified by:
getLogicalTypeNamein classConversion<TimePeriod>- Returns:
- a String logical type name
-
getRecommendedSchema
- Overrides:
getRecommendedSchemain classConversion<TimePeriod>
-
fromFixed
- Overrides:
fromFixedin classConversion<TimePeriod>
-
toFixed
- Overrides:
toFixedin classConversion<TimePeriod>
-