Java Code Examples for org.apache.flink.shaded.guava18.com.google.common.collect.Iterables#isEmpty()
The following examples show how to use
org.apache.flink.shaded.guava18.com.google.common.collect.Iterables#isEmpty() .
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: InputDependencyConstraintChecker.java From flink with Apache License 2.0 | 5 votes |
public boolean check(final SchedulingExecutionVertex schedulingExecutionVertex) { if (Iterables.isEmpty(schedulingExecutionVertex.getConsumedResults())) { return true; } final InputDependencyConstraint inputConstraint = schedulingExecutionVertex.getInputDependencyConstraint(); switch (inputConstraint) { case ANY: return checkAny(schedulingExecutionVertex); case ALL: return checkAll(schedulingExecutionVertex); default: throw new IllegalStateException("Unknown InputDependencyConstraint " + inputConstraint); } }
Example 2
Source File: SharedBuffer.java From Flink-CEPplus with Apache License 2.0 | 2 votes |
/** * Checks if there is no elements in the buffer. * * @return true if there is no elements in the buffer * @throws Exception Thrown if the system cannot access the state. */ public boolean isEmpty() throws Exception { return Iterables.isEmpty(eventsBufferCache.keySet()) && Iterables.isEmpty(eventsBuffer.keys()); }
Example 3
Source File: SharedBuffer.java From flink with Apache License 2.0 | 2 votes |
/** * Checks if there is no elements in the buffer. * * @return true if there is no elements in the buffer * @throws Exception Thrown if the system cannot access the state. */ public boolean isEmpty() throws Exception { return Iterables.isEmpty(eventsBufferCache.keySet()) && Iterables.isEmpty(eventsBuffer.keys()); }
Example 4
Source File: SharedBuffer.java From flink with Apache License 2.0 | 2 votes |
/** * Checks if there is no elements in the buffer. * * @return true if there is no elements in the buffer * @throws Exception Thrown if the system cannot access the state. */ public boolean isEmpty() throws Exception { return Iterables.isEmpty(eventsBufferCache.keySet()) && Iterables.isEmpty(eventsBuffer.keys()); }