T - The type represented by this type information.@Public public class PojoTypeInfo<T> extends CompositeType<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
PojoTypeInfo.NamedFlatFieldDescriptor |
CompositeType.FlatFieldDescriptor, CompositeType.InvalidFieldReferenceException, CompositeType.TypeComparatorBuilder<T>| Constructor and Description |
|---|
PojoTypeInfo(Class<T> typeClass,
List<PojoField> fields) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
PojoSerializer<T> |
createPojoSerializer(ExecutionConfig config) |
TypeSerializer<T> |
createSerializer(ExecutionConfig config)
Creates a serializer for the type.
|
protected CompositeType.TypeComparatorBuilder<T> |
createTypeComparatorBuilder() |
boolean |
equals(Object obj) |
int |
getArity()
Gets the arity of this type - the number of fields without nesting.
|
int |
getFieldIndex(String fieldName)
Returns the field index of the composite field of the given name.
|
String[] |
getFieldNames()
Returns the names of the composite fields of this type.
|
void |
getFlatFields(String fieldExpression,
int offset,
List<CompositeType.FlatFieldDescriptor> result)
Computes the flat field descriptors for the given field expression with the given offset.
|
PojoField |
getPojoFieldAt(int pos) |
int |
getTotalFields()
Gets the number of logical fields in this type.
|
<X> TypeInformation<X> |
getTypeAt(int pos)
Returns the type of the (unnested) field at the given field position.
|
<X> TypeInformation<X> |
getTypeAt(String fieldExpression)
Returns the type of the (nested) field at the given field expression position.
|
int |
hashCode() |
boolean |
isBasicType()
Checks if this type information represents a basic type.
|
boolean |
isSortKeyType()
Checks whether this type can be used as a key for sorting.
|
boolean |
isTupleType()
Checks if this type information represents a Tuple type.
|
String |
toString() |
createComparator, getFlatFields, getTypeClass, hasDeterministicFieldOrder, hasField, isKeyTypegetGenericParameters, of, of@PublicEvolving public boolean isBasicType()
TypeInformationBasicTypeInfo and are primitives, their boxing types,
Strings, Date, Void, ...isBasicType in class TypeInformation<T>@PublicEvolving public boolean isTupleType()
TypeInformationisTupleType in class TypeInformation<T>@PublicEvolving public int getArity()
TypeInformationgetArity in class TypeInformation<T>@PublicEvolving public int getTotalFields()
TypeInformationThe total number of fields must be at least 1.
getTotalFields in class TypeInformation<T>@PublicEvolving public boolean isSortKeyType()
TypeInformationisSortKeyType in class CompositeType<T>@PublicEvolving public void getFlatFields(String fieldExpression, int offset, List<CompositeType.FlatFieldDescriptor> result)
CompositeTypegetFlatFields in class CompositeType<T>fieldExpression - The field expression for which the FlatFieldDescriptors are computed.offset - The offset to use when computing the positions of the flat fields.result - The list into which all flat field descriptors are inserted.@PublicEvolving public <X> TypeInformation<X> getTypeAt(String fieldExpression)
CompositeTypegetTypeAt in class CompositeType<T>fieldExpression - The field expression for which the field of which the type is returned.@PublicEvolving public <X> TypeInformation<X> getTypeAt(int pos)
CompositeTypegetTypeAt in class CompositeType<T>pos - The position of the (unnested) field in this composite type.@PublicEvolving protected CompositeType.TypeComparatorBuilder<T> createTypeComparatorBuilder()
createTypeComparatorBuilder in class CompositeType<T>@PublicEvolving public PojoField getPojoFieldAt(int pos)
@PublicEvolving public String[] getFieldNames()
CompositeTypegetFieldNames in class CompositeType<T>@PublicEvolving public int getFieldIndex(String fieldName)
CompositeTypegetFieldIndex in class CompositeType<T>@PublicEvolving public TypeSerializer<T> createSerializer(ExecutionConfig config)
TypeInformationcreateSerializer in class TypeInformation<T>config - The config used to parameterize the serializer.public PojoSerializer<T> createPojoSerializer(ExecutionConfig config)
public boolean equals(Object obj)
equals in class CompositeType<T>public int hashCode()
hashCode in class CompositeType<T>public boolean canEqual(Object obj)
TypeInformationcanEqual in class CompositeType<T>obj - Object which wants to take part in the equality relationpublic String toString()
toString in class CompositeType<T>Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.