Package | Description |
---|---|
org.apache.avro |
Avro kernel classes.
|
org.apache.avro.data |
Interfaces and base classes shared by generic, specific and reflect.
|
org.apache.avro.generic |
A generic representation for Avro data.
|
org.apache.avro.specific |
Generate specific Java classes for schemas and protocols.
|
Modifier and Type | Class and Description |
---|---|
static class |
Conversions.DecimalConversion |
static class |
Conversions.UUIDConversion |
Modifier and Type | Method and Description |
---|---|
static Object |
Conversions.convertToLogicalType(Object datum,
Schema schema,
LogicalType type,
Conversion<?> conversion)
Convert a 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 the its underlying representation object (such as a ByteBuffer)
|
Modifier and Type | Class and Description |
---|---|
static class |
TimeConversions.DateConversion |
static class |
TimeConversions.LossyTimeMicrosConversion |
static class |
TimeConversions.LossyTimestampMicrosConversion |
static class |
TimeConversions.TimeConversion |
static class |
TimeConversions.TimeMicrosConversion |
static class |
TimeConversions.TimestampConversion |
static class |
TimeConversions.TimestampMicrosConversion |
Modifier and Type | Method and Description |
---|---|
protected Object |
RecordBuilderBase.defaultValue(Schema.Field field,
Conversion<?> conversion)
Gets the default value of the given field, if any.
|
Modifier and Type | Method and Description |
---|---|
<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.
|
Conversion<Object> |
GenericData.getConversionFor(LogicalType logicalType)
Returns the Conversion for the given logical type.
|
Modifier and Type | Method and Description |
---|---|
void |
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 a 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 the its underlying representation object (such as a ByteBuffer).
|
protected Object |
GenericDatumReader.readWithConversion(Object old,
Schema expected,
LogicalType logicalType,
Conversion<?> conversion,
ResolvingDecoder in) |
Modifier and Type | Method and Description |
---|---|
Conversion<?> |
SpecificRecordBase.getConverion(String fieldName)
Deprecated.
As of Avro 1.8.2, this method has been moved to
SpecificRecordBase.getConversion(String) method from 1.9.0. |
Conversion<?> |
SpecificRecordBase.getConversion(int field) |
Conversion<?> |
SpecificRecordBase.getConversion(String fieldName) |
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.