Java Code Examples for org.apache.beam.sdk.state.TimeDomain#PROCESSING_TIME
The following examples show how to use
org.apache.beam.sdk.state.TimeDomain#PROCESSING_TIME .
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: FnApiDoFnRunner.java From beam with Apache License 2.0 | 5 votes |
private TimeDomain translateTimeDomain( org.apache.beam.model.pipeline.v1.RunnerApi.TimeDomain.Enum domain) { switch (domain) { case EVENT_TIME: return TimeDomain.EVENT_TIME; case PROCESSING_TIME: return TimeDomain.PROCESSING_TIME; case SYNCHRONIZED_PROCESSING_TIME: return TimeDomain.SYNCHRONIZED_PROCESSING_TIME; default: throw new IllegalArgumentException("Unknown time domain"); } }
Example 2
Source File: WindmillTimerInternals.java From beam with Apache License 2.0 | 5 votes |
@VisibleForTesting static TimeDomain timerTypeToTimeDomain(Windmill.Timer.Type type) { switch (type) { case REALTIME: return TimeDomain.PROCESSING_TIME; case DEPENDENT_REALTIME: return TimeDomain.SYNCHRONIZED_PROCESSING_TIME; case WATERMARK: return TimeDomain.EVENT_TIME; default: throw new IllegalArgumentException("Unsupported timer type " + type); } }
Example 3
Source File: AfterProcessingTimeStateMachine.java From beam with Apache License 2.0 | 4 votes |
private AfterProcessingTimeStateMachine(List<SerializableFunction<Instant, Instant>> transforms) { super(TimeDomain.PROCESSING_TIME, transforms); }