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.
|
Modifier and Type | Class and Description |
---|---|
static class |
LogicalTypes.Date
Date represents a date without a time
|
static class |
LogicalTypes.Decimal
Decimal represents arbitrary-precision fixed-scale decimal numbers
|
static class |
LogicalTypes.TimeMicros
TimeMicros represents a time in microseconds without a date
|
static class |
LogicalTypes.TimeMillis
TimeMillis represents a time in milliseconds without a date
|
static class |
LogicalTypes.TimestampMicros
TimestampMicros represents a date and time in microseconds
|
static class |
LogicalTypes.TimestampMillis
TimestampMillis represents a date and time in milliseconds
|
Modifier and Type | Method and Description |
---|---|
static LogicalType |
LogicalTypes.fromSchema(Schema schema)
Returns the
LogicalType from the schema, if one is present. |
LogicalType |
LogicalTypes.LogicalTypeFactory.fromSchema(Schema schema) |
static LogicalType |
LogicalTypes.fromSchemaIgnoreInvalid(Schema schema) |
LogicalType |
Schema.getLogicalType() |
static LogicalType |
LogicalTypes.uuid() |
Modifier and Type | Method and Description |
---|---|
T |
Conversion.fromArray(Collection<?> value,
Schema schema,
LogicalType type) |
T |
Conversion.fromBoolean(Boolean value,
Schema schema,
LogicalType type) |
T |
Conversion.fromBytes(ByteBuffer value,
Schema schema,
LogicalType type) |
BigDecimal |
Conversions.DecimalConversion.fromBytes(ByteBuffer value,
Schema schema,
LogicalType type) |
T |
Conversion.fromCharSequence(CharSequence value,
Schema schema,
LogicalType type) |
UUID |
Conversions.UUIDConversion.fromCharSequence(CharSequence value,
Schema schema,
LogicalType type) |
T |
Conversion.fromDouble(Double value,
Schema schema,
LogicalType type) |
T |
Conversion.fromEnumSymbol(GenericEnumSymbol value,
Schema schema,
LogicalType type) |
T |
Conversion.fromFixed(GenericFixed value,
Schema schema,
LogicalType type) |
BigDecimal |
Conversions.DecimalConversion.fromFixed(GenericFixed value,
Schema schema,
LogicalType type) |
T |
Conversion.fromFloat(Float value,
Schema schema,
LogicalType type) |
T |
Conversion.fromInt(Integer value,
Schema schema,
LogicalType type) |
T |
Conversion.fromLong(Long value,
Schema schema,
LogicalType type) |
T |
Conversion.fromMap(Map<?,?> value,
Schema schema,
LogicalType type) |
T |
Conversion.fromRecord(IndexedRecord value,
Schema schema,
LogicalType type) |
Collection<?> |
Conversion.toArray(T value,
Schema schema,
LogicalType type) |
Boolean |
Conversion.toBoolean(T value,
Schema schema,
LogicalType type) |
ByteBuffer |
Conversions.DecimalConversion.toBytes(BigDecimal value,
Schema schema,
LogicalType type) |
ByteBuffer |
Conversion.toBytes(T value,
Schema schema,
LogicalType type) |
CharSequence |
Conversion.toCharSequence(T value,
Schema schema,
LogicalType type) |
CharSequence |
Conversions.UUIDConversion.toCharSequence(UUID value,
Schema schema,
LogicalType type) |
Double |
Conversion.toDouble(T value,
Schema schema,
LogicalType type) |
GenericEnumSymbol |
Conversion.toEnumSymbol(T value,
Schema schema,
LogicalType type) |
GenericFixed |
Conversions.DecimalConversion.toFixed(BigDecimal value,
Schema schema,
LogicalType type) |
GenericFixed |
Conversion.toFixed(T value,
Schema schema,
LogicalType type) |
Float |
Conversion.toFloat(T value,
Schema schema,
LogicalType type) |
Integer |
Conversion.toInt(T value,
Schema schema,
LogicalType type) |
Long |
Conversion.toLong(T value,
Schema schema,
LogicalType type) |
Map<?,?> |
Conversion.toMap(T value,
Schema schema,
LogicalType type) |
IndexedRecord |
Conversion.toRecord(T value,
Schema schema,
LogicalType type) |
Modifier and Type | Method and Description |
---|---|
org.joda.time.LocalDate |
TimeConversions.DateConversion.fromInt(Integer daysFromEpoch,
Schema schema,
LogicalType type) |
org.joda.time.LocalTime |
TimeConversions.TimeConversion.fromInt(Integer millisFromMidnight,
Schema schema,
LogicalType type) |
org.joda.time.LocalTime |
TimeConversions.TimeMicrosConversion.fromLong(Long microsFromMidnight,
Schema schema,
LogicalType type) |
org.joda.time.DateTime |
TimeConversions.TimestampConversion.fromLong(Long millisFromEpoch,
Schema schema,
LogicalType type) |
org.joda.time.DateTime |
TimeConversions.TimestampMicrosConversion.fromLong(Long microsFromEpoch,
Schema schema,
LogicalType type) |
Integer |
TimeConversions.DateConversion.toInt(org.joda.time.LocalDate date,
Schema schema,
LogicalType type) |
Integer |
TimeConversions.TimeConversion.toInt(org.joda.time.LocalTime time,
Schema schema,
LogicalType type) |
Long |
TimeConversions.TimestampConversion.toLong(org.joda.time.DateTime timestamp,
Schema schema,
LogicalType type) |
Long |
TimeConversions.LossyTimestampMicrosConversion.toLong(org.joda.time.DateTime timestamp,
Schema schema,
LogicalType type) |
Long |
TimeConversions.LossyTimeMicrosConversion.toLong(org.joda.time.LocalTime time,
Schema schema,
LogicalType type) |
Modifier and Type | Method and Description |
---|---|
protected Object |
GenericDatumReader.convert(Object datum,
Schema schema,
LogicalType type,
Conversion<?> conversion) |
protected <T> Object |
GenericDatumWriter.convert(Schema schema,
LogicalType logicalType,
Conversion<T> conversion,
Object datum) |
<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.
|
protected Object |
GenericDatumReader.readWithConversion(Object old,
Schema expected,
LogicalType logicalType,
Conversion<?> conversion,
ResolvingDecoder in) |
Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.