| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Object | Returns: The result object, which is a high level object of the logical type. The null datum always converts to a null value.The object to be converted. datum, Schema The schema of datum. Cannot be null if datum is not null. schema, LogicalType The type, Conversion<?> org. of datum. Cannot be
null if datum is not null.The tool used to finish the conversion. Cannot be null if
datum is not null. conversion)Convert an underlying representation of a logical type (such as a ByteBuffer) to a higher level object (such as a BigDecimal). |
| public static <T> Object | Returns: The result object, which is an underlying representation object of the logical type. If the input param datum is null, a null value will be returned.The object to be converted. datum, Schema The schema of datum. Cannot be null if datum is not null. schema, LogicalType The type, Conversion<T> org. of datum. Cannot be
null if datum is not null.The tool used to finish the conversion. Cannot be null if
datum is not null. conversion)Convert a high level representation of a logical type (such as a BigDecimal) to its underlying representation object (such as a ByteBuffer) |
| Conversions | back to summary |
|---|---|
| public Conversions() | |
| convertToLogicalType | back to summary |
|---|---|
| public static Object convertToLogicalType(Object datum, Schema schema, LogicalType type, Conversion<?> conversion) Convert an underlying representation of a logical type (such as a ByteBuffer) to a higher level object (such as a BigDecimal).
| |
| convertToRawType | back to summary |
|---|---|
| public static <T> Object convertToRawType(Object datum, Schema schema, LogicalType type, Conversion<T> conversion) Convert a high level representation of a logical type (such as a BigDecimal) to its underlying representation object (such as a ByteBuffer)
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public BigDecimal | fromBytes(ByteBuffer value, Schema schema, LogicalType type)
Overrides org. |
| public BigDecimal | fromFixed(GenericFixed value, Schema schema, LogicalType type)
Overrides org. |
| public Class | getConvertedType()
Implements abstract org. |
| public String | getLogicalTypeName()
Implements abstract org. |
| public Schema | |
| public ByteBuffer | toBytes(BigDecimal value, Schema schema, LogicalType type)
Overrides org. |
| public GenericFixed | toFixed(BigDecimal value, Schema schema, LogicalType type)
Overrides org. |
| private static BigDecimal |
| DecimalConversion | back to summary |
|---|---|
| public DecimalConversion() | |
| fromBytes | back to summary |
|---|---|
| public BigDecimal fromBytes(ByteBuffer value, Schema schema, LogicalType type) Overrides org.
| |
| fromFixed | back to summary |
|---|---|
| public BigDecimal fromFixed(GenericFixed value, Schema schema, LogicalType type) Overrides org.
| |
| getConvertedType | back to summary |
|---|---|
| public Class Implements abstract org. Doc from org. Return the Java class representing the logical type.
| |
| getLogicalTypeName | back to summary |
|---|---|
| public String getLogicalTypeName() Implements abstract org. Doc from org. Return the logical type this class converts. | |
| getRecommendedSchema | back to summary |
|---|---|
| public Schema getRecommendedSchema() Overrides org.
| |
| toBytes | back to summary |
|---|---|
| public ByteBuffer toBytes(BigDecimal value, Schema schema, LogicalType type) Overrides org.
| |
| toFixed | back to summary |
|---|---|
| public GenericFixed toFixed(BigDecimal value, Schema schema, LogicalType type) Overrides org.
| |
| validate | back to summary |
|---|---|
| private static BigDecimal validate(final LogicalTypes. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public UUID | fromCharSequence(CharSequence value, Schema schema, LogicalType type)
Overrides org. |
| public Class | getConvertedType()
Implements abstract org. |
| public String | getLogicalTypeName()
Implements abstract org. |
| public Schema | |
| public CharSequence | toCharSequence(UUID value, Schema schema, LogicalType type)
Overrides org. |
| UUIDConversion | back to summary |
|---|---|
| public UUIDConversion() | |
| fromCharSequence | back to summary |
|---|---|
| public UUID fromCharSequence(CharSequence value, Schema schema, LogicalType type) Overrides org.
| |
| getConvertedType | back to summary |
|---|---|
| public Class Implements abstract org. Doc from org. Return the Java class representing the logical type. | |
| getLogicalTypeName | back to summary |
|---|---|
| public String getLogicalTypeName() Implements abstract org. Doc from org. Return the logical type this class converts. | |
| getRecommendedSchema | back to summary |
|---|---|
| public Schema getRecommendedSchema() Overrides org.
| |
| toCharSequence | back to summary |
|---|---|
| public CharSequence toCharSequence(UUID value, Schema schema, LogicalType type) Overrides org.
| |