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