Java Code Examples for org.apache.beam.sdk.transforms.windowing.BoundedWindow#equals()

The following examples show how to use org.apache.beam.sdk.transforms.windowing.BoundedWindow#equals() . 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: ParDoEvaluatorTest.java    From beam with Apache License 2.0 5 votes vote down vote up
@Override
@Nullable
public <T> T get(PCollectionView<T> view, BoundedWindow window) {
  if (window.equals(GlobalWindow.INSTANCE)) {
    return (T) (Integer) 5;
  }
  fail("Should only call get in the Global Window, others are not ready");
  throw new AssertionError("Unreachable");
}
 
Example 2
Source File: ParDoEvaluatorTest.java    From beam with Apache License 2.0 4 votes vote down vote up
@Override
public boolean isReady(PCollectionView<?> view, BoundedWindow window) {
  return window.equals(GlobalWindow.INSTANCE);
}