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 classstatic classDate represents a date without a timestatic classDecimal represents arbitrary-precision fixed-scale decimal numbersstatic classDuration represents a duration, consisting on months, days and millisecondsstatic classstatic classstatic classstatic classTimeMicros represents a time in microseconds without a datestatic classTimeMillis represents a time in milliseconds without a datestatic classTimestampMicros represents a date and time in microsecondsstatic classTimestampMillis represents a date and time in millisecondsstatic classTimestampNanos represents a date and time in nanosecondsstatic classUuid represents a uuid without a timeFields in org.apache.avro declared as LogicalTypeModifier and TypeFieldDescriptionfinal LogicalTypeResolver.Action.logicalTypeIf 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 LogicalTypeLogicalTypes.duration()static LogicalTypeLogicalTypes.fromSchema(Schema schema) Returns theLogicalTypefrom the schema, if one is present.LogicalTypes.LogicalTypeFactory.fromSchema(Schema schema) static LogicalTypeLogicalTypes.fromSchemaIgnoreInvalid(Schema schema) Schema.getLogicalType()static LogicalTypeLogicalTypes.uuid()Methods in org.apache.avro with parameters of type LogicalTypeModifier and TypeMethodDescriptionstatic ObjectConversions.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> ObjectConversions.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 ObjectGenericDatumReader.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> ObjectGenericDatumWriter.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 ObjectGenericDatumReader.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.TimestampProtoConversions.TimestampMicrosConversion.fromLong(Long microsFromEpoch, Schema schema, LogicalType type) com.google.protobuf.TimestampProtoConversions.TimestampMillisConversion.fromLong(Long millisFromEpoch, Schema schema, LogicalType type) com.google.protobuf.TimestampProtoConversions.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)