Java Code Examples for org.apache.flink.types.BooleanValue#setValue()

The following examples show how to use org.apache.flink.types.BooleanValue#setValue() . 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: BooleanValueParser.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Override
public int parseField(byte[] bytes, int startPos, int limit, byte[] delim, BooleanValue reuse) {
	int returnValue = parser.parseField(bytes, startPos, limit, delim, reuse.getValue());
	setErrorState(parser.getErrorState());
	reuse.setValue(parser.getLastResult());
	result = reuse;
	return returnValue;
}
 
Example 2
Source File: BooleanValueParser.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public int parseField(byte[] bytes, int startPos, int limit, byte[] delim, BooleanValue reuse) {
	int returnValue = parser.parseField(bytes, startPos, limit, delim, reuse.getValue());
	setErrorState(parser.getErrorState());
	reuse.setValue(parser.getLastResult());
	result = reuse;
	return returnValue;
}
 
Example 3
Source File: BooleanValueParser.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public int parseField(byte[] bytes, int startPos, int limit, byte[] delim, BooleanValue reuse) {
	int returnValue = parser.parseField(bytes, startPos, limit, delim, reuse.getValue());
	setErrorState(parser.getErrorState());
	reuse.setValue(parser.getLastResult());
	result = reuse;
	return returnValue;
}
 
Example 4
Source File: BooleanValueSerializer.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public BooleanValue copy(BooleanValue from) {
	BooleanValue result = new BooleanValue();
	result.setValue(from.getValue());
	return result;
}
 
Example 5
Source File: BooleanValueSerializer.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public BooleanValue copy(BooleanValue from, BooleanValue reuse) {
	reuse.setValue(from.getValue());
	return reuse;
}
 
Example 6
Source File: BooleanValueSerializer.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public BooleanValue copy(BooleanValue from) {
	BooleanValue result = new BooleanValue();
	result.setValue(from.getValue());
	return result;
}
 
Example 7
Source File: BooleanValueSerializer.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public BooleanValue copy(BooleanValue from, BooleanValue reuse) {
	reuse.setValue(from.getValue());
	return reuse;
}
 
Example 8
Source File: BooleanValueSerializer.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public BooleanValue copy(BooleanValue from) {
	BooleanValue result = new BooleanValue();
	result.setValue(from.getValue());
	return result;
}
 
Example 9
Source File: BooleanValueSerializer.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public BooleanValue copy(BooleanValue from, BooleanValue reuse) {
	reuse.setValue(from.getValue());
	return reuse;
}