http://git-wip-us.apache.org/repos/asf/incubator-beam-site/blob/31760961/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/InProcessTimerInternals.html ---------------------------------------------------------------------- diff --git a/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/InProcessTimerInternals.html b/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/InProcessTimerInternals.html deleted file mode 100644 index bb54a04..0000000 --- a/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/InProcessTimerInternals.html +++ /dev/null @@ -1,467 +0,0 @@ - - - -
- - -public class InProcessTimerInternals -extends Object -implements TimerInternals-
TimerInternals
where all relevant data exists in memory.TimerInternals.TimerData, TimerInternals.TimerDataCoder
Modifier and Type | -Method and Description | -
---|---|
static InProcessTimerInternals |
-create(Clock clock,
- InMemoryWatermarkManager.TransformWatermarks watermarks,
- InMemoryWatermarkManager.TimerUpdate.TimerUpdateBuilder timerUpdateBuilder) |
-
org.joda.time.Instant |
-currentInputWatermarkTime()
-Return the current, local input watermark timestamp for this computation
- in the
-TimeDomain.EVENT_TIME time domain. |
-
org.joda.time.Instant |
-currentOutputWatermarkTime()
-Return the current, local output watermark timestamp for this computation
- in the
-TimeDomain.EVENT_TIME time domain. |
-
org.joda.time.Instant |
-currentProcessingTime()
-Returns the current timestamp in the
-TimeDomain.PROCESSING_TIME time domain. |
-
org.joda.time.Instant |
-currentSynchronizedProcessingTime()
-Returns the current timestamp in the
-TimeDomain.SYNCHRONIZED_PROCESSING_TIME time
- domain or null if unknown. |
-
void |
-deleteTimer(TimerInternals.TimerData timerKey)
-Deletes the given timer.
- |
-
InMemoryWatermarkManager.TimerUpdate |
-getTimerUpdate() |
-
void |
-setTimer(TimerInternals.TimerData timerKey)
-Writes out a timer to be fired when the watermark reaches the given
- timestamp.
- |
-
public static InProcessTimerInternals create(Clock clock, - InMemoryWatermarkManager.TransformWatermarks watermarks, - InMemoryWatermarkManager.TimerUpdate.TimerUpdateBuilder timerUpdateBuilder)-
public void setTimer(TimerInternals.TimerData timerKey)-
TimerInternals
The combination of namespace
, timestamp
and domain
uniquely
- identify a timer. Multiple timers set for the same parameters can be safely deduplicated.
setTimer
in interface TimerInternals
public void deleteTimer(TimerInternals.TimerData timerKey)-
TimerInternals
deleteTimer
in interface TimerInternals
public InMemoryWatermarkManager.TimerUpdate getTimerUpdate()-
public org.joda.time.Instant currentProcessingTime()-
TimerInternals
TimeDomain.PROCESSING_TIME
time domain.currentProcessingTime
in interface TimerInternals
@Nullable -public org.joda.time.Instant currentSynchronizedProcessingTime()-
TimerInternals
TimeDomain.SYNCHRONIZED_PROCESSING_TIME
time
- domain or null
if unknown.currentSynchronizedProcessingTime
in interface TimerInternals
public org.joda.time.Instant currentInputWatermarkTime()-
TimerInternals
TimeDomain.EVENT_TIME
time domain.
-
- This value: -
BoundedWindow.TIMESTAMP_MIN_VALUE
.
- Note that because the local input watermark can be behind the global input watermark, - it is possible for an element to be considered locally on-time even though it is - globally late.
currentInputWatermarkTime
in interface TimerInternals
@Nullable -public org.joda.time.Instant currentOutputWatermarkTime()-
TimerInternals
TimeDomain.EVENT_TIME
time domain. Return null
if unknown.
-
- This value: -
TimerInternals.currentInputWatermarkTime()
as returned above.
- In pictures: -
- | | | | | - | | D | C | B | A - | | | | | - GIWM <= GOWM <= LOWM <= LIWM <= GIWM - (next stage) - -------------------------------------------------> event time -- where -
Note that if a computation emits an element which is not before the current output watermark - then that element will always appear locally on-time in all following computations. However, - it is possible for an element emitted before the current output watermark to appear locally - on-time in a following computation. Thus we must be careful to never assume locally late data - viewed on the output of a computation remains locally late on the input of a following - computation.
currentOutputWatermarkTime
in interface TimerInternals
Copyright © 2016 The Apache Software Foundation. All rights reserved.
- - http://git-wip-us.apache.org/repos/asf/incubator-beam-site/blob/31760961/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/InProcessTransformResult.html ---------------------------------------------------------------------- diff --git a/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/InProcessTransformResult.html b/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/InProcessTransformResult.html deleted file mode 100644 index 4d41674..0000000 --- a/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/InProcessTransformResult.html +++ /dev/null @@ -1,343 +0,0 @@ - - - - - - -public interface InProcessTransformResult
-AppliedPTransform
with a TransformEvaluator
.Modifier and Type | -Method and Description | -
---|---|
CounterSet |
-getCounters()
-Returns the
-CounterSet used by this PTransform , or null if this transform did
- not use a CounterSet . |
-
Iterable<? extends InProcessPipelineRunner.UncommittedBundle<?>> |
-getOutputBundles()
-Returns the
-(uncommitted) Bundles output by this transform. |
-
CopyOnAccessInMemoryStateInternals<?> |
-getState()
-Returns the State used by the transform.
- |
-
InMemoryWatermarkManager.TimerUpdate |
-getTimerUpdate()
-Returns a TimerUpdateBuilder that was produced as a result of this evaluation.
- |
-
AppliedPTransform<?,?,?> |
-getTransform()
-Returns the
-AppliedPTransform that produced this result. |
-
Iterable<? extends WindowedValue<?>> |
-getUnprocessedElements()
-Returns elements that were provided to the
-TransformEvaluator as input but were not
- processed. |
-
org.joda.time.Instant |
-getWatermarkHold()
-Returns the Watermark Hold for the transform at the time this result was produced.
- |
-
AppliedPTransform<?,?,?> getTransform()-
AppliedPTransform
that produced this result.Iterable<? extends InProcessPipelineRunner.UncommittedBundle<?>> getOutputBundles()-
(uncommitted) Bundles
output by this transform. These
- will be committed by the evaluation context as part of completing this result.Iterable<? extends WindowedValue<?>> getUnprocessedElements()-
TransformEvaluator
as input but were not
- processed.@Nullable -CounterSet getCounters()-
CounterSet
used by this PTransform
, or null if this transform did
- not use a CounterSet
.org.joda.time.Instant getWatermarkHold()-
BoundedWindow.TIMESTAMP_MAX_VALUE
.@Nullable -CopyOnAccessInMemoryStateInternals<?> getState()-
InMemoryWatermarkManager.TimerUpdate getTimerUpdate()-
If this evaluation did not add or remove any timers, returns an empty TimerUpdate.
Copyright © 2016 The Apache Software Foundation. All rights reserved.
- - http://git-wip-us.apache.org/repos/asf/incubator-beam-site/blob/31760961/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/ModelEnforcement.html ---------------------------------------------------------------------- diff --git a/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/ModelEnforcement.html b/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/ModelEnforcement.html deleted file mode 100644 index 7f518e2..0000000 --- a/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/ModelEnforcement.html +++ /dev/null @@ -1,283 +0,0 @@ - - - - - - -public interface ModelEnforcement<T>
-ModelEnforcement is performed on a per-element and per-bundle basis. The
- ModelEnforcement
is provided with the input bundle as part of
- ModelEnforcementFactory#forBundle(CommittedBundle, AppliedPTransform)
, each element
- before and after that element is provided to an underlying TransformEvaluator
, and the
- output InProcessTransformResult
and committed output bundles after the
- TransformEvaluator
has completed.
-
-
Typically, ModelEnforcement
will obtain required metadata (such as the Coder
- of the input PCollection
on construction, and then enforce per-element behavior
- (such as the immutability of input elements). When the element is output or the bundle is
- completed, the required conditions can be enforced across all elements.
Modifier and Type | -Method and Description | -
---|---|
void |
-afterElement(WindowedValue<T> element)
-Called after a call to
-TransformEvaluator.processElement(WindowedValue) on the
- provided WindowedValue . |
-
void |
-afterFinish(InProcessPipelineRunner.CommittedBundle<T> input,
- InProcessTransformResult result,
- Iterable<? extends InProcessPipelineRunner.CommittedBundle<?>> outputs)
-Called after a bundle has been completed and
-TransformEvaluator.finishBundle() has been
- called, producing the provided InProcessTransformResult and
- output bundles . |
-
void |
-beforeElement(WindowedValue<T> element)
-Called before a call to
-TransformEvaluator.processElement(WindowedValue) on the
- provided WindowedValue . |
-
void beforeElement(WindowedValue<T> element)-
TransformEvaluator.processElement(WindowedValue)
on the
- provided WindowedValue
.void afterElement(WindowedValue<T> element)-
TransformEvaluator.processElement(WindowedValue)
on the
- provided WindowedValue
.void afterFinish(InProcessPipelineRunner.CommittedBundle<T> input, - InProcessTransformResult result, - Iterable<? extends InProcessPipelineRunner.CommittedBundle<?>> outputs)-
TransformEvaluator.finishBundle()
has been
- called, producing the provided InProcessTransformResult
and
- output bundles
.Copyright © 2016 The Apache Software Foundation. All rights reserved.
- - http://git-wip-us.apache.org/repos/asf/incubator-beam-site/blob/31760961/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/ModelEnforcementFactory.html ---------------------------------------------------------------------- diff --git a/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/ModelEnforcementFactory.html b/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/ModelEnforcementFactory.html deleted file mode 100644 index d118ea3..0000000 --- a/javadoc/0.1.0-incubating/org/apache/beam/runners/direct/ModelEnforcementFactory.html +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - -public interface ModelEnforcementFactory
-ModelEnforcement
instances for an AppliedPTransform
on an input
- bundle
. ModelEnforcement
instances are created before the
- TransformEvaluator
is created.Modifier and Type | -Method and Description | -
---|---|
<T> ModelEnforcement<T> |
-forBundle(InProcessPipelineRunner.CommittedBundle<T> input,
- AppliedPTransform<?,?,?> consumer) |
-
<T> ModelEnforcement<T> forBundle(InProcessPipelineRunner.CommittedBundle<T> input, - AppliedPTransform<?,?,?> consumer)-
Copyright © 2016 The Apache Software Foundation. All rights reserved.
- -