@Override @SuppressWarnings("unchecked") public void setInputType(TypeInformation<?> type, ExecutionConfig executionConfig) { this.typeSerializer = (TypeSerializer<T>) type.createSerializer(executionConfig); } }
public static String[] typesToString(TypeInformation<?>[] types) { final String[] typesAsString = new String[types.length]; for (int i = 0; i < types.length; i++) { typesAsString[i] = types[i].toString(); } return typesAsString; } }
public ValueArrayTypeInfo(TypeInformation<T> valueType) { this.valueType = valueType; this.type = valueType == null ? null : valueType.getTypeClass(); }
@Override public TypeInformation<Event> getProducedType() { return TypeInformation.of(Event.class); } }
@Override public boolean equals(Object obj) { return obj == this || obj instanceof TypeHint && this.typeInfo.equals(((TypeHint<?>) obj).typeInfo); }
/** * Converts a table schema into a (nested) type information describing a {@link Row}. */ public TypeInformation<Row> toRowType() { return Types.ROW_NAMED(fieldNames, fieldTypes); }
/** * Gets the type information of the component type. * @return The type information of the component type. */ @PublicEvolving public TypeInformation<?> getComponentType() { return BasicTypeInfo.getInfoFor(getComponentClass()); }
@Override public int hashCode() { return typeInfo.hashCode(); }
@TypeInfo(IntLikeTypeInfoFactory.class) public static class IntLike { // empty }
@Override public TypeInformation<Row> getReturnType() { return Types.ROW(Types.INT, Types.LONG, Types.STRING); }
@Override protected NothingTypeInfo[] getTestData() { return new NothingTypeInfo[] { new NothingTypeInfo() }; } }
@Override public TypeComparator<T> createComparator(boolean sortOrderAscending, ExecutionConfig executionConfig) { return instantiateComparator(comparatorClass, sortOrderAscending); }
@Override public boolean equals(Object obj) { if (obj instanceof NothingTypeInfo) { NothingTypeInfo nothingTypeInfo = (NothingTypeInfo) obj; return nothingTypeInfo.canEqual(this); } else { return false; } }
@Override protected TypeSerializer<T> createSerializer() { return info.createSerializer(null); } }
@Override @SuppressWarnings("unchecked") public void setInputType(TypeInformation<?> type, ExecutionConfig executionConfig) { serializer = (TypeSerializer<T>) type.createSerializer(executionConfig); } }
@Override public TypeInformation<KafkaEvent> getProducedType() { return TypeInformation.of(KafkaEvent.class); } }
@Override public TypeInformation<Row> getOutputType() { return Types.ROW_NAMED(fieldNames, fieldTypes); }
@Override public TypeInformation<Row> getProducedType() { return Types.ROW(Types.INT, Types.LONG, Types.STRING); }