public static class Conversions.DecimalConversion extends Conversion<BigDecimal>
Constructor and Description |
---|
DecimalConversion() |
Modifier and Type | Method and Description |
---|---|
BigDecimal |
fromBytes(ByteBuffer value,
Schema schema,
LogicalType type) |
BigDecimal |
fromFixed(GenericFixed value,
Schema schema,
LogicalType type) |
Class<BigDecimal> |
getConvertedType()
Return the Java class representing the logical type.
|
String |
getLogicalTypeName()
Return the logical type this class converts.
|
Schema |
getRecommendedSchema() |
ByteBuffer |
toBytes(BigDecimal value,
Schema schema,
LogicalType type) |
GenericFixed |
toFixed(BigDecimal value,
Schema schema,
LogicalType type) |
adjustAndSetValue, fromArray, fromBoolean, fromCharSequence, fromDouble, fromEnumSymbol, fromFloat, fromInt, fromLong, fromMap, fromRecord, toArray, toBoolean, toCharSequence, toDouble, toEnumSymbol, toFloat, toInt, toLong, toMap, toRecord
public Class<BigDecimal> getConvertedType()
Conversion
getConvertedType
in class Conversion<BigDecimal>
public Schema getRecommendedSchema()
getRecommendedSchema
in class Conversion<BigDecimal>
public String getLogicalTypeName()
Conversion
getLogicalTypeName
in class Conversion<BigDecimal>
public BigDecimal fromBytes(ByteBuffer value, Schema schema, LogicalType type)
fromBytes
in class Conversion<BigDecimal>
public ByteBuffer toBytes(BigDecimal value, Schema schema, LogicalType type)
toBytes
in class Conversion<BigDecimal>
public BigDecimal fromFixed(GenericFixed value, Schema schema, LogicalType type)
fromFixed
in class Conversion<BigDecimal>
public GenericFixed toFixed(BigDecimal value, Schema schema, LogicalType type)
toFixed
in class Conversion<BigDecimal>
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.