@Override protected MultisetTypeInfo<?>[] getTestData() { return new MultisetTypeInfo<?>[] { new MultisetTypeInfo<>(BasicTypeInfo.STRING_TYPE_INFO), new MultisetTypeInfo<>(BasicTypeInfo.INT_TYPE_INFO), new MultisetTypeInfo<>(Long.class) }; } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof MultisetTypeInfo) { final MultisetTypeInfo<?> other = (MultisetTypeInfo<?>) obj; return other.canEqual(this) && getKeyTypeInfo().equals(other.getKeyTypeInfo()); } else { return false; } }
/** * Gets the type information for the elements contained in the Multiset */ public TypeInformation<T> getElementTypeInfo() { return getKeyTypeInfo(); }
} else if (typeInfo instanceof MultisetTypeInfo) { final MultisetTypeInfo multisetTypeInfo = (MultisetTypeInfo) typeInfo; return MULTISET + '<' + writeTypeInfo(multisetTypeInfo.getElementTypeInfo()) + '>'; } else if (typeInfo instanceof MapTypeInfo) { final MapTypeInfo mapTypeInfo = (MapTypeInfo) typeInfo;
@Override public String toString() { return "Multiset<" + getKeyTypeInfo() + '>'; }
} else if (typeInfo instanceof MultisetTypeInfo) { final MultisetTypeInfo multisetTypeInfo = (MultisetTypeInfo) typeInfo; return MULTISET + '<' + writeTypeInfo(multisetTypeInfo.getElementTypeInfo()) + '>'; } else if (typeInfo instanceof MapTypeInfo) { final MapTypeInfo mapTypeInfo = (MapTypeInfo) typeInfo;
@SuppressWarnings("unchecked") @PublicEvolving public static <C> MultisetTypeInfo<C> getInfoFor(TypeInformation<C> componentInfo) { checkNotNull(componentInfo); return new MultisetTypeInfo<>(componentInfo); } }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof MultisetTypeInfo) { final MultisetTypeInfo<?> other = (MultisetTypeInfo<?>) obj; return other.canEqual(this) && getKeyTypeInfo().equals(other.getKeyTypeInfo()); } else { return false; } }
@Override public int hashCode() { return 31 * getKeyTypeInfo().hashCode() + 1; }
} else if (typeInfo instanceof MultisetTypeInfo) { final MultisetTypeInfo multisetTypeInfo = (MultisetTypeInfo) typeInfo; return MULTISET + '<' + writeTypeInfo(multisetTypeInfo.getElementTypeInfo()) + '>'; } else if (typeInfo instanceof MapTypeInfo) { final MapTypeInfo mapTypeInfo = (MapTypeInfo) typeInfo;
private TypeInformation<?> convertMultiset() { nextToken(TokenType.BEGIN); nextToken(TokenType.LITERAL); final TypeInformation<?> elementTypeInfo = convertType(); nextToken(TokenType.END); return new MultisetTypeInfo<>(elementTypeInfo); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (obj instanceof MultisetTypeInfo) { final MultisetTypeInfo<?> other = (MultisetTypeInfo<?>) obj; return other.canEqual(this) && getKeyTypeInfo().equals(other.getKeyTypeInfo()); } else { return false; } }
/** * Gets the type information for the elements contained in the Multiset */ public TypeInformation<T> getElementTypeInfo() { return getKeyTypeInfo(); }
new MultisetTypeInfo<>(Types.ROW(Types.BIG_DEC, Types.BYTE)));
/** * Gets the type information for the elements contained in the Multiset */ public TypeInformation<T> getElementTypeInfo() { return getKeyTypeInfo(); }
@SuppressWarnings("unchecked") @PublicEvolving public static <C> MultisetTypeInfo<C> getInfoFor(TypeInformation<C> componentInfo) { checkNotNull(componentInfo); return new MultisetTypeInfo<>(componentInfo); } }
@Override public String toString() { return "Multiset<" + getKeyTypeInfo() + '>'; }
@SuppressWarnings("unchecked") @PublicEvolving public static <C> MultisetTypeInfo<C> getInfoFor(TypeInformation<C> componentInfo) { checkNotNull(componentInfo); return new MultisetTypeInfo<>(componentInfo); } }
@Override public String toString() { return "Multiset<" + getKeyTypeInfo() + '>'; }
private TypeInformation<?> convertMultiset() { nextToken(TokenType.BEGIN); nextToken(TokenType.LITERAL); final TypeInformation<?> elementTypeInfo = convertType(); nextToken(TokenType.END); return new MultisetTypeInfo<>(elementTypeInfo); }