Java Code Examples for org.apache.flink.api.java.typeutils.TupleTypeInfo#getTypeAt()

The following examples show how to use org.apache.flink.api.java.typeutils.TupleTypeInfo#getTypeAt() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: Flink-CEPplus   File: ProjectOperator.java    License: Apache License 2.0 5 votes vote down vote up
private TypeInformation<?>[] extractFieldTypes(int[] fields, TypeInformation<?> inType) {

			TupleTypeInfo<?> inTupleType = (TupleTypeInfo<?>) inType;
			TypeInformation<?>[] fieldTypes = new TypeInformation[fields.length];

			for (int i = 0; i < fields.length; i++) {
				fieldTypes[i] = inTupleType.getTypeAt(fields[i]);
			}

			return fieldTypes;
		}
 
Example 2
Source Project: Flink-CEPplus   File: StreamProjection.java    License: Apache License 2.0 5 votes vote down vote up
public static TypeInformation<?>[] extractFieldTypes(int[] fields, TypeInformation<?> inType) {

		TupleTypeInfo<?> inTupleType = (TupleTypeInfo<?>) inType;
		TypeInformation<?>[] fieldTypes = new TypeInformation[fields.length];

		for (int i = 0; i < fields.length; i++) {
			fieldTypes[i] = inTupleType.getTypeAt(fields[i]);
		}

		return fieldTypes;
	}
 
Example 3
Source Project: flink   File: ProjectOperator.java    License: Apache License 2.0 5 votes vote down vote up
private TypeInformation<?>[] extractFieldTypes(int[] fields, TypeInformation<?> inType) {

			TupleTypeInfo<?> inTupleType = (TupleTypeInfo<?>) inType;
			TypeInformation<?>[] fieldTypes = new TypeInformation[fields.length];

			for (int i = 0; i < fields.length; i++) {
				fieldTypes[i] = inTupleType.getTypeAt(fields[i]);
			}

			return fieldTypes;
		}
 
Example 4
Source Project: flink   File: StreamProjection.java    License: Apache License 2.0 5 votes vote down vote up
public static TypeInformation<?>[] extractFieldTypes(int[] fields, TypeInformation<?> inType) {

		TupleTypeInfo<?> inTupleType = (TupleTypeInfo<?>) inType;
		TypeInformation<?>[] fieldTypes = new TypeInformation[fields.length];

		for (int i = 0; i < fields.length; i++) {
			fieldTypes[i] = inTupleType.getTypeAt(fields[i]);
		}

		return fieldTypes;
	}
 
Example 5
Source Project: flink   File: ProjectOperator.java    License: Apache License 2.0 5 votes vote down vote up
private TypeInformation<?>[] extractFieldTypes(int[] fields, TypeInformation<?> inType) {

			TupleTypeInfo<?> inTupleType = (TupleTypeInfo<?>) inType;
			TypeInformation<?>[] fieldTypes = new TypeInformation[fields.length];

			for (int i = 0; i < fields.length; i++) {
				fieldTypes[i] = inTupleType.getTypeAt(fields[i]);
			}

			return fieldTypes;
		}
 
Example 6
Source Project: flink   File: StreamProjection.java    License: Apache License 2.0 5 votes vote down vote up
public static TypeInformation<?>[] extractFieldTypes(int[] fields, TypeInformation<?> inType) {

		TupleTypeInfo<?> inTupleType = (TupleTypeInfo<?>) inType;
		TypeInformation<?>[] fieldTypes = new TypeInformation[fields.length];

		for (int i = 0; i < fields.length; i++) {
			fieldTypes[i] = inTupleType.getTypeAt(fields[i]);
		}

		return fieldTypes;
	}