Class MultisetTypeInfo<T>
- java.lang.Object
-
- org.apache.flink.api.common.typeinfo.TypeInformation<Map<K,V>>
-
- org.apache.flink.api.java.typeutils.MapTypeInfo<T,Integer>
-
- org.apache.flink.api.java.typeutils.MultisetTypeInfo<T>
-
- Type Parameters:
T
- The type of the elements in the Multiset.
- All Implemented Interfaces:
Serializable
@PublicEvolving public final class MultisetTypeInfo<T> extends MapTypeInfo<T,Integer>
ATypeInformation
for the Multiset types of the Java API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MultisetTypeInfo(Class<T> elementTypeClass)
MultisetTypeInfo(TypeInformation<T> elementTypeInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(Object obj)
Returns true if the given object can be equaled with this object.boolean
equals(Object obj)
TypeInformation<T>
getElementTypeInfo()
Gets the type information for the elements contained in the Multisetstatic <C> MultisetTypeInfo<C>
getInfoFor(TypeInformation<C> componentInfo)
int
hashCode()
String
toString()
-
Methods inherited from class org.apache.flink.api.java.typeutils.MapTypeInfo
createSerializer, getArity, getKeyTypeInfo, getTotalFields, getTypeClass, getValueTypeInfo, isBasicType, isKeyType, isTupleType
-
Methods inherited from class org.apache.flink.api.common.typeinfo.TypeInformation
getGenericParameters, isSortKeyType, of, of
-
-
-
-
Constructor Detail
-
MultisetTypeInfo
public MultisetTypeInfo(TypeInformation<T> elementTypeInfo)
-
-
Method Detail
-
getElementTypeInfo
public TypeInformation<T> getElementTypeInfo()
Gets the type information for the elements contained in the Multiset
-
toString
public String toString()
- Overrides:
toString
in classMapTypeInfo<T,Integer>
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classMapTypeInfo<T,Integer>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classMapTypeInfo<T,Integer>
-
canEqual
public boolean canEqual(Object obj)
Description copied from class:TypeInformation
Returns true if the given object can be equaled with this object. If not, it returns false.- Overrides:
canEqual
in classMapTypeInfo<T,Integer>
- Parameters:
obj
- Object which wants to take part in the equality relation- Returns:
- true if obj can be equaled with this, otherwise false
-
getInfoFor
@PublicEvolving public static <C> MultisetTypeInfo<C> getInfoFor(TypeInformation<C> componentInfo)
-
-