public class AvroTypeInfo<T extends org.apache.avro.specific.SpecificRecordBase>
extends org.apache.flink.api.java.typeutils.PojoTypeInfo<T>
Proceeding: It uses a regular pojo type analysis and replaces all GenericType<CharSequence> with a GenericType<avro.Utf8>. All other types used by Avro
are standard Java types. Only strings are represented as CharSequence fields and represented as
Utf8 classes at runtime. CharSequence is not comparable. To make them nicely usable with field
expressions, we replace them here by generic type infos containing Utf8 classes (which are
comparable),
This class is checked by the AvroPojoTest.
org.apache.flink.api.java.typeutils.PojoTypeInfo.NamedFlatFieldDescriptororg.apache.flink.api.common.typeutils.CompositeType.FlatFieldDescriptor, org.apache.flink.api.common.typeutils.CompositeType.InvalidFieldReferenceException, org.apache.flink.api.common.typeutils.CompositeType.TypeComparatorBuilder<T>| Constructor and Description |
|---|
AvroTypeInfo(Class<T> typeClass)
Creates a new Avro type info for the given class.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.common.typeutils.TypeSerializer<T> |
createSerializer(org.apache.flink.api.common.ExecutionConfig config) |
org.apache.flink.api.common.typeutils.TypeSerializer<T> |
createSerializer(org.apache.flink.api.common.serialization.SerializerConfig config) |
canEqual, createPojoSerializer, createPojoSerializer, createTypeComparatorBuilder, equals, getArity, getFieldIndex, getFieldNames, getFlatFields, getPojoFieldAt, getTotalFields, getTypeAt, getTypeAt, hashCode, isBasicType, isSortKeyType, isTupleType, toStringcreateComparator, getFlatFields, getTypeClass, hasDeterministicFieldOrder, hasField, isKeyTypepublic org.apache.flink.api.common.typeutils.TypeSerializer<T> createSerializer(org.apache.flink.api.common.serialization.SerializerConfig config)
createSerializer in class org.apache.flink.api.java.typeutils.PojoTypeInfo<T extends org.apache.avro.specific.SpecificRecordBase>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.