T - The type of the elements in the list.@PublicEvolving public final class ListTypeInfo<T> extends TypeInformation<List<T>>
TypeInformation for the list types of the Java API.| Constructor and Description |
|---|
ListTypeInfo(Class<T> elementTypeClass) |
ListTypeInfo(TypeInformation<T> elementTypeInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
TypeSerializer<List<T>> |
createSerializer(ExecutionConfig config)
Creates a serializer for the type.
|
boolean |
equals(Object obj) |
int |
getArity()
Gets the arity of this type - the number of fields without nesting.
|
TypeInformation<T> |
getElementTypeInfo()
Gets the type information for the elements contained in the list
|
int |
getTotalFields()
Gets the number of logical fields in this type.
|
Class<List<T>> |
getTypeClass()
Gets the class of the type represented by this type information.
|
int |
hashCode() |
boolean |
isBasicType()
Checks if this type information represents a basic type.
|
boolean |
isKeyType()
Checks whether this type can be used as a key.
|
boolean |
isTupleType()
Checks if this type information represents a Tuple type.
|
String |
toString() |
getGenericParameters, isSortKeyType, of, ofpublic ListTypeInfo(TypeInformation<T> elementTypeInfo)
public TypeInformation<T> getElementTypeInfo()
public boolean isBasicType()
TypeInformationBasicTypeInfo and are primitives, their boxing types,
Strings, Date, Void, ...isBasicType in class TypeInformation<List<T>>public boolean isTupleType()
TypeInformationisTupleType in class TypeInformation<List<T>>public int getArity()
TypeInformationgetArity in class TypeInformation<List<T>>public int getTotalFields()
TypeInformationThe total number of fields must be at least 1.
getTotalFields in class TypeInformation<List<T>>public Class<List<T>> getTypeClass()
TypeInformationgetTypeClass in class TypeInformation<List<T>>public boolean isKeyType()
TypeInformationisKeyType in class TypeInformation<List<T>>public TypeSerializer<List<T>> createSerializer(ExecutionConfig config)
TypeInformationcreateSerializer in class TypeInformation<List<T>>config - The config used to parameterize the serializer.public String toString()
toString in class TypeInformation<List<T>>public boolean equals(Object obj)
equals in class TypeInformation<List<T>>public int hashCode()
hashCode in class TypeInformation<List<T>>public boolean canEqual(Object obj)
TypeInformationcanEqual in class TypeInformation<List<T>>obj - Object which wants to take part in the equality relationCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.