T
- element type@Internal public class ListViewTypeInfo<T> extends TypeInformation<ListView<T>>
ListView
.Constructor and Description |
---|
ListViewTypeInfo(TypeInformation<T> elementType) |
ListViewTypeInfo(TypeInformation<T> elementType,
boolean nullSerializer) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
TypeSerializer<ListView<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> |
getElementType() |
int |
getTotalFields()
Gets the number of logical fields in this type.
|
Class<ListView<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 |
isNullSerializer() |
boolean |
isTupleType()
Checks if this type information represents a Tuple type.
|
void |
setNullSerializer(boolean nullSerializer) |
String |
toString() |
getGenericParameters, isSortKeyType, of, of
public ListViewTypeInfo(TypeInformation<T> elementType, boolean nullSerializer)
public ListViewTypeInfo(TypeInformation<T> elementType)
public TypeInformation<T> getElementType()
public boolean isNullSerializer()
public void setNullSerializer(boolean nullSerializer)
public boolean isBasicType()
TypeInformation
BasicTypeInfo
and are primitives, their boxing types, Strings, Date, Void, ...isBasicType
in class TypeInformation<ListView<T>>
public boolean isTupleType()
TypeInformation
isTupleType
in class TypeInformation<ListView<T>>
public int getArity()
TypeInformation
getArity
in class TypeInformation<ListView<T>>
public int getTotalFields()
TypeInformation
The total number of fields must be at least 1.
getTotalFields
in class TypeInformation<ListView<T>>
public Class<ListView<T>> getTypeClass()
TypeInformation
getTypeClass
in class TypeInformation<ListView<T>>
public boolean isKeyType()
TypeInformation
isKeyType
in class TypeInformation<ListView<T>>
public TypeSerializer<ListView<T>> createSerializer(ExecutionConfig config)
TypeInformation
createSerializer
in class TypeInformation<ListView<T>>
config
- The config used to parameterize the serializer.public String toString()
toString
in class TypeInformation<ListView<T>>
public boolean equals(Object obj)
equals
in class TypeInformation<ListView<T>>
public int hashCode()
hashCode
in class TypeInformation<ListView<T>>
public boolean canEqual(Object obj)
TypeInformation
canEqual
in class TypeInformation<ListView<T>>
obj
- Object which wants to take part in the equality relationCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.