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