Uses of Class
org.apache.avro.Conversion
Packages that use Conversion
Package
Description
Avro kernel classes.
Interfaces and base classes shared by generic, specific and reflect.
A generic representation for Avro data.
Protocol Buffer
compatibility.
Generate specific Java classes for schemas and protocols.
-
Uses of Conversion in org.apache.avro
Subclasses of Conversion in org.apache.avroModifier and TypeClassDescriptionstatic class
static class
static class
static class
Fields in org.apache.avro declared as ConversionModifier and TypeFieldDescriptionfinal Conversion
<?> Resolver.Action.conversion
If the reader has a conversion that needs to be applied, it's stored here for fast access, otherwise this will be null.Methods in org.apache.avro with parameters of type ConversionModifier and TypeMethodDescriptionstatic Object
Conversions.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).static <T> Object
Conversions.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) -
Uses of Conversion in org.apache.avro.data
Subclasses of Conversion in org.apache.avro.dataModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
-
Uses of Conversion in org.apache.avro.generic
Methods in org.apache.avro.generic that return ConversionModifier and TypeMethodDescription<T> Conversion
<T> GenericData.getConversionByClass
(Class<T> datumClass) Returns the first conversion found for the given class.<T> Conversion
<T> GenericData.getConversionByClass
(Class<T> datumClass, LogicalType logicalType) Returns the conversion for the given class and logical type.<T> Conversion
<T> GenericData.getConversionFor
(LogicalType logicalType) Returns the Conversion for the given logical type.Methods in org.apache.avro.generic that return types with arguments of type ConversionMethods in org.apache.avro.generic with parameters of type ConversionModifier and TypeMethodDescriptionvoid
GenericData.addLogicalTypeConversion
(Conversion<?> conversion) Registers the given conversion to be used when reading and writing with this data model.protected Object
GenericDatumReader.convert
(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).protected <T> Object
GenericDatumWriter.convert
(Schema schema, LogicalType logicalType, Conversion<T> conversion, Object datum) Convert a high level representation of a logical type (such as a BigDecimal) to its underlying representation object (such as a ByteBuffer).protected Object
GenericDatumReader.readWithConversion
(Object old, Schema expected, LogicalType logicalType, Conversion<?> conversion, ResolvingDecoder in) -
Uses of Conversion in org.apache.avro.protobuf
Subclasses of Conversion in org.apache.avro.protobufModifier and TypeClassDescriptionstatic class
static class
static class
-
Uses of Conversion in org.apache.avro.specific
Methods in org.apache.avro.specific that return ConversionModifier and TypeMethodDescriptionConversion
<?> SpecificRecordBase.getConversion
(int field) Conversion
<?> SpecificRecordBase.getConversion
(String fieldName)