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>
ATypeInformationfor 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 booleancanEqual(Object obj)Returns true if the given object can be equaled with this object.booleanequals(Object obj)TypeInformation<T>getElementTypeInfo()Gets the type information for the elements contained in the Multisetstatic <C> MultisetTypeInfo<C>getInfoFor(TypeInformation<C> componentInfo)inthashCode()StringtoString()-
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:
toStringin classMapTypeInfo<T,Integer>
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classMapTypeInfo<T,Integer>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMapTypeInfo<T,Integer>
-
canEqual
public boolean canEqual(Object obj)
Description copied from class:TypeInformationReturns true if the given object can be equaled with this object. If not, it returns false.- Overrides:
canEqualin 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)
-
-