K
- key typeV
- value type@Internal public class MapViewTypeInfo<K,V> extends TypeInformation<MapView<K,V>>
MapView
.Constructor and Description |
---|
MapViewTypeInfo(TypeInformation<K> keyType,
TypeInformation<V> valueType) |
MapViewTypeInfo(TypeInformation<K> keyType,
TypeInformation<V> valueType,
boolean nullSerializer,
boolean nullAware) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(Object obj)
Returns true if the given object can be equaled with this object.
|
TypeSerializer<MapView<K,V>> |
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<K> |
getKeyType() |
int |
getTotalFields()
Gets the number of logical fields in this type.
|
Class<MapView<K,V>> |
getTypeClass()
Gets the class of the type represented by this type information.
|
TypeInformation<V> |
getValueType() |
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 |
isNullAware() |
boolean |
isNullSerializer() |
boolean |
isTupleType()
Checks if this type information represents a Tuple type.
|
void |
setNullSerializer(boolean nullSerializer) |
String |
toString() |
getGenericParameters, isSortKeyType, of, of
public MapViewTypeInfo(TypeInformation<K> keyType, TypeInformation<V> valueType, boolean nullSerializer, boolean nullAware)
public MapViewTypeInfo(TypeInformation<K> keyType, TypeInformation<V> valueType)
public TypeInformation<K> getKeyType()
public TypeInformation<V> getValueType()
public boolean isNullAware()
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<MapView<K,V>>
public boolean isTupleType()
TypeInformation
isTupleType
in class TypeInformation<MapView<K,V>>
public int getArity()
TypeInformation
getArity
in class TypeInformation<MapView<K,V>>
public int getTotalFields()
TypeInformation
The total number of fields must be at least 1.
getTotalFields
in class TypeInformation<MapView<K,V>>
public Class<MapView<K,V>> getTypeClass()
TypeInformation
getTypeClass
in class TypeInformation<MapView<K,V>>
public boolean isKeyType()
TypeInformation
isKeyType
in class TypeInformation<MapView<K,V>>
public TypeSerializer<MapView<K,V>> createSerializer(ExecutionConfig config)
TypeInformation
createSerializer
in class TypeInformation<MapView<K,V>>
config
- The config used to parameterize the serializer.public boolean equals(Object obj)
equals
in class TypeInformation<MapView<K,V>>
public int hashCode()
hashCode
in class TypeInformation<MapView<K,V>>
public boolean canEqual(Object obj)
TypeInformation
canEqual
in class TypeInformation<MapView<K,V>>
obj
- Object which wants to take part in the equality relationCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.