Java Code Examples for org.apache.flink.api.common.operators.util.FieldSet#EMPTY_SET

The following examples show how to use org.apache.flink.api.common.operators.util.FieldSet#EMPTY_SET . 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 File: SingleInputSemanticProperties.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
public FieldSet getForwardingTargetFields(int input, int sourceField) {
	if (input != 0) {
		throw new IndexOutOfBoundsException();
	}

	return this.fieldMapping.containsKey(sourceField) ? this.fieldMapping.get(sourceField) : FieldSet.EMPTY_SET;
}
 
Example 2
Source File: DualInputSemanticProperties.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
public FieldSet getForwardingTargetFields(int input, int sourceField) {

	if (input != 0 && input != 1) {
		throw new IndexOutOfBoundsException();
	} else if (input == 0) {

		return fieldMapping1.containsKey(sourceField) ? fieldMapping1.get(sourceField) : FieldSet.EMPTY_SET;
	} else {
		return fieldMapping2.containsKey(sourceField) ? fieldMapping2.get(sourceField) : FieldSet.EMPTY_SET;
	}
}
 
Example 3
Source File: BinaryUnionNode.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
public FieldSet getReadFields(int input) {
	if (input != 0 && input != 1) {
		throw new IndexOutOfBoundsException();
	}

	return FieldSet.EMPTY_SET;
}
 
Example 4
Source File: SingleInputSemanticProperties.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public FieldSet getForwardingTargetFields(int input, int sourceField) {
	if (input != 0) {
		throw new IndexOutOfBoundsException();
	}

	return this.fieldMapping.containsKey(sourceField) ? this.fieldMapping.get(sourceField) : FieldSet.EMPTY_SET;
}
 
Example 5
Source File: DualInputSemanticProperties.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public FieldSet getForwardingTargetFields(int input, int sourceField) {

	if (input != 0 && input != 1) {
		throw new IndexOutOfBoundsException();
	} else if (input == 0) {

		return fieldMapping1.containsKey(sourceField) ? fieldMapping1.get(sourceField) : FieldSet.EMPTY_SET;
	} else {
		return fieldMapping2.containsKey(sourceField) ? fieldMapping2.get(sourceField) : FieldSet.EMPTY_SET;
	}
}
 
Example 6
Source File: BinaryUnionNode.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public FieldSet getReadFields(int input) {
	if (input != 0 && input != 1) {
		throw new IndexOutOfBoundsException();
	}

	return FieldSet.EMPTY_SET;
}
 
Example 7
Source File: SingleInputSemanticProperties.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public FieldSet getForwardingTargetFields(int input, int sourceField) {
	if (input != 0) {
		throw new IndexOutOfBoundsException();
	}

	return this.fieldMapping.containsKey(sourceField) ? this.fieldMapping.get(sourceField) : FieldSet.EMPTY_SET;
}
 
Example 8
Source File: DualInputSemanticProperties.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public FieldSet getForwardingTargetFields(int input, int sourceField) {

	if (input != 0 && input != 1) {
		throw new IndexOutOfBoundsException();
	} else if (input == 0) {

		return fieldMapping1.containsKey(sourceField) ? fieldMapping1.get(sourceField) : FieldSet.EMPTY_SET;
	} else {
		return fieldMapping2.containsKey(sourceField) ? fieldMapping2.get(sourceField) : FieldSet.EMPTY_SET;
	}
}
 
Example 9
Source File: BinaryUnionNode.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public FieldSet getReadFields(int input) {
	if (input != 0 && input != 1) {
		throw new IndexOutOfBoundsException();
	}

	return FieldSet.EMPTY_SET;
}
 
Example 10
Source File: SemanticProperties.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public FieldSet getForwardingTargetFields(int input, int sourceField) {
	return FieldSet.EMPTY_SET;
}
 
Example 11
Source File: SemanticProperties.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public FieldSet getForwardingTargetFields(int input, int sourceField) {
	return FieldSet.EMPTY_SET;
}
 
Example 12
Source File: SemanticProperties.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public FieldSet getForwardingTargetFields(int input, int sourceField) {
	return FieldSet.EMPTY_SET;
}