Java Code Examples for org.apache.flink.cep.nfa.sharedbuffer.EventId#compareTo()

The following examples show how to use org.apache.flink.cep.nfa.sharedbuffer.EventId#compareTo() . 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: AfterMatchSkipStrategy.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
static EventId max(EventId o1, EventId o2) {
	if (o2 == null) {
		return o1;
	}

	if (o1 == null) {
		return o2;
	}

	if (o1.compareTo(o2) >= 0) {
		return o1;
	} else {
		return o2;
	}
}
 
Example 2
Source File: AfterMatchSkipStrategy.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
static EventId min(EventId o1, EventId o2) {
	if (o2 == null) {
		return o1;
	}

	if (o1 == null) {
		return o2;
	}

	if (o1.compareTo(o2) <= 0) {
		return o1;
	} else {
		return o2;
	}
}
 
Example 3
Source File: AfterMatchSkipStrategy.java    From flink with Apache License 2.0 5 votes vote down vote up
static EventId max(EventId o1, EventId o2) {
	if (o2 == null) {
		return o1;
	}

	if (o1 == null) {
		return o2;
	}

	if (o1.compareTo(o2) >= 0) {
		return o1;
	} else {
		return o2;
	}
}
 
Example 4
Source File: AfterMatchSkipStrategy.java    From flink with Apache License 2.0 5 votes vote down vote up
static EventId min(EventId o1, EventId o2) {
	if (o2 == null) {
		return o1;
	}

	if (o1 == null) {
		return o2;
	}

	if (o1.compareTo(o2) <= 0) {
		return o1;
	} else {
		return o2;
	}
}
 
Example 5
Source File: AfterMatchSkipStrategy.java    From flink with Apache License 2.0 5 votes vote down vote up
static EventId max(EventId o1, EventId o2) {
	if (o2 == null) {
		return o1;
	}

	if (o1 == null) {
		return o2;
	}

	if (o1.compareTo(o2) >= 0) {
		return o1;
	} else {
		return o2;
	}
}
 
Example 6
Source File: AfterMatchSkipStrategy.java    From flink with Apache License 2.0 5 votes vote down vote up
static EventId min(EventId o1, EventId o2) {
	if (o2 == null) {
		return o1;
	}

	if (o1 == null) {
		return o2;
	}

	if (o1.compareTo(o2) <= 0) {
		return o1;
	} else {
		return o2;
	}
}
 
Example 7
Source File: SkipRelativeToWholeMatchStrategy.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
protected final boolean shouldPrune(EventId startEventID, EventId pruningId) {
	return startEventID != null && startEventID.compareTo(pruningId) <= 0;
}
 
Example 8
Source File: SkipToElementStrategy.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
protected boolean shouldPrune(EventId startEventID, EventId pruningId) {
	return startEventID != null && startEventID.compareTo(pruningId) < 0;
}
 
Example 9
Source File: SkipRelativeToWholeMatchStrategy.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
protected final boolean shouldPrune(EventId startEventID, EventId pruningId) {
	return startEventID != null && startEventID.compareTo(pruningId) <= 0;
}
 
Example 10
Source File: SkipToElementStrategy.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
protected boolean shouldPrune(EventId startEventID, EventId pruningId) {
	return startEventID != null && startEventID.compareTo(pruningId) < 0;
}
 
Example 11
Source File: SkipRelativeToWholeMatchStrategy.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
protected final boolean shouldPrune(EventId startEventID, EventId pruningId) {
	return startEventID != null && startEventID.compareTo(pruningId) <= 0;
}
 
Example 12
Source File: SkipToElementStrategy.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
protected boolean shouldPrune(EventId startEventID, EventId pruningId) {
	return startEventID != null && startEventID.compareTo(pruningId) < 0;
}