Java Code Examples for org.apache.beam.sdk.transforms.windowing.Window#OnTimeBehavior

The following examples show how to use org.apache.beam.sdk.transforms.windowing.Window#OnTimeBehavior . 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: Join.java    From beam with Apache License 2.0 4 votes vote down vote up
@Override
public WindowedOutputBuilder<KeyT, OutputT> withOnTimeBehavior(Window.OnTimeBehavior behavior) {
  windowBuilder.withOnTimeBehavior(behavior);
  return this;
}
 
Example 2
Source File: TopPerKey.java    From beam with Apache License 2.0 4 votes vote down vote up
@Override
public WindowedOutputBuilder<KeyT, ValueT, ScoreT> withOnTimeBehavior(
    Window.OnTimeBehavior behavior) {
  windowBuilder.withOnTimeBehavior(behavior);
  return this;
}
 
Example 3
Source File: WindowBuilder.java    From beam with Apache License 2.0 4 votes vote down vote up
@Override
public WindowBuilder<T> withOnTimeBehavior(Window.OnTimeBehavior behavior) {
  window = requireNonNull(window).withOnTimeBehavior(requireNonNull(behavior));
  return this;
}
 
Example 4
Source File: ReduceByKey.java    From beam with Apache License 2.0 4 votes vote down vote up
@Override
public WindowedOutputBuilder<KeyT, OutputT> withOnTimeBehavior(Window.OnTimeBehavior behavior) {
  windowBuilder.withOnTimeBehavior(behavior);
  return this;
}
 
Example 5
Source File: SumByKey.java    From beam with Apache License 2.0 4 votes vote down vote up
@Override
public WindowedOutputBuilder<KeyT> withOnTimeBehavior(Window.OnTimeBehavior behavior) {
  windowBuilder.withOnTimeBehavior(behavior);
  return this;
}
 
Example 6
Source File: CountByKey.java    From beam with Apache License 2.0 4 votes vote down vote up
@Override
public WindowedOutputBuilder<KeyT> withOnTimeBehavior(Window.OnTimeBehavior behavior) {
  windowBuilder.withOnTimeBehavior(behavior);
  return this;
}
 
Example 7
Source File: ReduceWindow.java    From beam with Apache License 2.0 4 votes vote down vote up
@Override
public WindowedOutputBuilder<OutputT> withOnTimeBehavior(Window.OnTimeBehavior behavior) {
  windowBuilder.withOnTimeBehavior(behavior);
  return this;
}
 
Example 8
Source File: Distinct.java    From beam with Apache License 2.0 4 votes vote down vote up
@Override
public WindowedOutputBuilder<InputT> withOnTimeBehavior(Window.OnTimeBehavior behavior) {
  windowBuilder.withOnTimeBehavior(behavior);
  return this;
}
 
Example 9
Source File: Builders.java    From beam with Apache License 2.0 2 votes vote down vote up
/**
 * {@link Window#withOnTimeBehavior(Window.OnTimeBehavior)}.
 *
 * @param behavior window on time behavior
 * @return next windowing builder in chain
 */
T withOnTimeBehavior(Window.OnTimeBehavior behavior);