Uses of Class
org.apache.avro.LogicalType
Packages that use LogicalType
Package
Description
Avro kernel classes.
Interfaces and base classes shared by generic, specific and reflect.
A generic representation for Avro data.
Protocol Buffer
compatibility.
-
Uses of LogicalType in org.apache.avro
Subclasses of LogicalType in org.apache.avroModifier and TypeClassDescriptionstatic class
static class
Date represents a date without a timestatic class
Decimal represents arbitrary-precision fixed-scale decimal numbersstatic class
Duration represents a duration, consisting on months, days and millisecondsstatic class
static class
static class
static class
TimeMicros represents a time in microseconds without a datestatic class
TimeMillis represents a time in milliseconds without a datestatic class
TimestampMicros represents a date and time in microsecondsstatic class
TimestampMillis represents a date and time in millisecondsstatic class
TimestampNanos represents a date and time in nanosecondsstatic class
Uuid represents a uuid without a timeFields in org.apache.avro declared as LogicalTypeModifier and TypeFieldDescriptionfinal LogicalType
Resolver.Action.logicalType
If the reader has a logical type, it's stored here for fast access, otherwise this will be null.Methods in org.apache.avro that return LogicalTypeModifier and TypeMethodDescriptionstatic LogicalType
LogicalTypes.duration()
static LogicalType
LogicalTypes.fromSchema
(Schema schema) Returns theLogicalType
from the schema, if one is present.LogicalTypes.LogicalTypeFactory.fromSchema
(Schema schema) static LogicalType
LogicalTypes.fromSchemaIgnoreInvalid
(Schema schema) Schema.getLogicalType()
static LogicalType
LogicalTypes.uuid()
Methods in org.apache.avro with parameters of type LogicalTypeModifier 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)Conversion.fromArray
(Collection<?> value, Schema schema, LogicalType type) Conversion.fromBoolean
(Boolean value, Schema schema, LogicalType type) Conversion.fromBytes
(ByteBuffer value, Schema schema, LogicalType type) Conversions.BigDecimalConversion.fromBytes
(ByteBuffer value, Schema schema, LogicalType type) Conversions.DecimalConversion.fromBytes
(ByteBuffer value, Schema schema, LogicalType type) Conversion.fromCharSequence
(CharSequence value, Schema schema, LogicalType type) Conversions.UUIDConversion.fromCharSequence
(CharSequence value, Schema schema, LogicalType type) Conversion.fromDouble
(Double value, Schema schema, LogicalType type) Conversion.fromEnumSymbol
(GenericEnumSymbol<?> value, Schema schema, LogicalType type) Conversion.fromFixed
(GenericFixed value, Schema schema, LogicalType type) Conversions.DecimalConversion.fromFixed
(GenericFixed value, Schema schema, LogicalType type) Conversions.DurationConversion.fromFixed
(GenericFixed value, Schema schema, LogicalType type) Conversions.UUIDConversion.fromFixed
(GenericFixed value, Schema schema, LogicalType type) Conversion.fromFloat
(Float value, Schema schema, LogicalType type) Conversion.fromInt
(Integer value, Schema schema, LogicalType type) Conversion.fromLong
(Long value, Schema schema, LogicalType type) Conversion.fromMap
(Map<?, ?> value, Schema schema, LogicalType type) Conversion.fromRecord
(IndexedRecord value, Schema schema, LogicalType type) Collection
<?> Conversion.toArray
(T value, Schema schema, LogicalType type) Conversion.toBoolean
(T value, Schema schema, LogicalType type) Conversion.toBytes
(T value, Schema schema, LogicalType type) Conversions.BigDecimalConversion.toBytes
(BigDecimal value, Schema schema, LogicalType type) Conversions.DecimalConversion.toBytes
(BigDecimal value, Schema schema, LogicalType type) Conversion.toCharSequence
(T value, Schema schema, LogicalType type) Conversions.UUIDConversion.toCharSequence
(UUID value, Schema schema, LogicalType type) Conversion.toDouble
(T value, Schema schema, LogicalType type) Conversion.toEnumSymbol
(T value, Schema schema, LogicalType type) Conversion.toFixed
(T value, Schema schema, LogicalType type) Conversions.DecimalConversion.toFixed
(BigDecimal value, Schema schema, LogicalType type) Conversions.DurationConversion.toFixed
(TimePeriod value, Schema schema, LogicalType type) Conversions.UUIDConversion.toFixed
(UUID value, Schema schema, LogicalType type) Conversion.toFloat
(T value, Schema schema, LogicalType type) Conversion.toInt
(T value, Schema schema, LogicalType type) Conversion.toLong
(T value, Schema schema, LogicalType type) Map
<?, ?> Conversion.toMap
(T value, Schema schema, LogicalType type) Conversion.toRecord
(T value, Schema schema, LogicalType type) -
Uses of LogicalType in org.apache.avro.data
Methods in org.apache.avro.data with parameters of type LogicalTypeModifier and TypeMethodDescriptionTimeConversions.DateConversion.fromInt
(Integer daysFromEpoch, Schema schema, LogicalType type) TimeConversions.TimeMillisConversion.fromInt
(Integer millisFromMidnight, Schema schema, LogicalType type) TimeConversions.LocalTimestampMicrosConversion.fromLong
(Long microsFromEpoch, Schema schema, LogicalType type) TimeConversions.LocalTimestampMillisConversion.fromLong
(Long millisFromEpoch, Schema schema, LogicalType type) TimeConversions.LocalTimestampNanosConversion.fromLong
(Long microsFromEpoch, Schema schema, LogicalType type) TimeConversions.TimeMicrosConversion.fromLong
(Long microsFromMidnight, Schema schema, LogicalType type) TimeConversions.TimestampMicrosConversion.fromLong
(Long microsFromEpoch, Schema schema, LogicalType type) TimeConversions.TimestampMillisConversion.fromLong
(Long millisFromEpoch, Schema schema, LogicalType type) TimeConversions.TimestampNanosConversion.fromLong
(Long microsFromEpoch, Schema schema, LogicalType type) TimeConversions.DateConversion.toInt
(LocalDate date, Schema schema, LogicalType type) TimeConversions.TimeMillisConversion.toInt
(LocalTime time, Schema schema, LogicalType type) TimeConversions.LocalTimestampMicrosConversion.toLong
(LocalDateTime timestamp, Schema schema, LogicalType type) TimeConversions.LocalTimestampMillisConversion.toLong
(LocalDateTime timestamp, Schema schema, LogicalType type) TimeConversions.LocalTimestampNanosConversion.toLong
(LocalDateTime timestamp, Schema schema, LogicalType type) TimeConversions.TimeMicrosConversion.toLong
(LocalTime time, Schema schema, LogicalType type) TimeConversions.TimestampMicrosConversion.toLong
(Instant instant, Schema schema, LogicalType type) TimeConversions.TimestampMillisConversion.toLong
(Instant timestamp, Schema schema, LogicalType type) TimeConversions.TimestampNanosConversion.toLong
(Instant instant, Schema schema, LogicalType type) -
Uses of LogicalType in org.apache.avro.generic
Methods in org.apache.avro.generic with parameters of type LogicalTypeModifier and TypeMethodDescriptionprotected 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).<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.protected Object
GenericDatumReader.readWithConversion
(Object old, Schema expected, LogicalType logicalType, Conversion<?> conversion, ResolvingDecoder in) -
Uses of LogicalType in org.apache.avro.protobuf
Methods in org.apache.avro.protobuf with parameters of type LogicalTypeModifier and TypeMethodDescriptioncom.google.protobuf.Timestamp
ProtoConversions.TimestampMicrosConversion.fromLong
(Long microsFromEpoch, Schema schema, LogicalType type) com.google.protobuf.Timestamp
ProtoConversions.TimestampMillisConversion.fromLong
(Long millisFromEpoch, Schema schema, LogicalType type) com.google.protobuf.Timestamp
ProtoConversions.TimestampNanosConversion.fromLong
(Long nanosFromEpoch, Schema schema, LogicalType type) ProtoConversions.TimestampMicrosConversion.toLong
(com.google.protobuf.Timestamp value, Schema schema, LogicalType type) ProtoConversions.TimestampMillisConversion.toLong
(com.google.protobuf.Timestamp value, Schema schema, LogicalType type) ProtoConversions.TimestampNanosConversion.toLong
(com.google.protobuf.Timestamp value, Schema schema, LogicalType type)