/** * @deprecated Deprecated method only kept for compatibility. * * @param types */ @SuppressWarnings({ "unchecked", "hiding" }) @Deprecated @PublicEvolving public <OUT extends Tuple> JoinOperator<I1, I2, OUT> types(Class<?>... types) { TupleTypeInfo<OUT> typeInfo = (TupleTypeInfo<OUT>) this.getResultType(); if (types.length != typeInfo.getArity()) { throw new InvalidProgramException("Provided types do not match projection."); } for (int i = 0; i < types.length; i++) { Class<?> typeClass = types[i]; if (!typeClass.equals(typeInfo.getTypeAt(i).getTypeClass())) { throw new InvalidProgramException("Provided type " + typeClass.getSimpleName() + " at position " + i + " does not match projection"); } } return (JoinOperator<I1, I2, OUT>) this; }
/** * @deprecated Deprecated method only kept for compatibility. * * @param types */ @SuppressWarnings({ "unchecked", "hiding" }) @Deprecated @PublicEvolving public <OUT extends Tuple> JoinOperator<I1, I2, OUT> types(Class<?>... types) { TupleTypeInfo<OUT> typeInfo = (TupleTypeInfo<OUT>) this.getResultType(); if (types.length != typeInfo.getArity()) { throw new InvalidProgramException("Provided types do not match projection."); } for (int i = 0; i < types.length; i++) { Class<?> typeClass = types[i]; if (!typeClass.equals(typeInfo.getTypeAt(i).getTypeClass())) { throw new InvalidProgramException("Provided type " + typeClass.getSimpleName() + " at position " + i + " does not match projection"); } } return (JoinOperator<I1, I2, OUT>) this; }
/** * @deprecated Deprecated method only kept for compatibility. * * @param types */ @SuppressWarnings({ "unchecked", "hiding" }) @Deprecated @PublicEvolving public <OUT extends Tuple> JoinOperator<I1, I2, OUT> types(Class<?>... types) { TupleTypeInfo<OUT> typeInfo = (TupleTypeInfo<OUT>) this.getResultType(); if (types.length != typeInfo.getArity()) { throw new InvalidProgramException("Provided types do not match projection."); } for (int i = 0; i < types.length; i++) { Class<?> typeClass = types[i]; if (!typeClass.equals(typeInfo.getTypeAt(i).getTypeClass())) { throw new InvalidProgramException("Provided type " + typeClass.getSimpleName() + " at position " + i + " does not match projection"); } } return (JoinOperator<I1, I2, OUT>) this; }