public interface TransformResult<InputT>
AppliedPTransform with a TransformEvaluator.
Every transform evaluator has a defined input type, but ParDo has multiple outputs
so there is not necesssarily a defined output type.
| Modifier and Type | Method and Description |
|---|---|
AggregatorContainer.Mutator |
getAggregatorChanges()
Returns the
AggregatorContainer.Mutator used by this PTransform, or null if
this transform did not use an AggregatorContainer.Mutator. |
MetricUpdates |
getLogicalMetricUpdates()
Returns the logical metric updates.
|
Iterable<? extends org.apache.beam.runners.direct.DirectRunner.UncommittedBundle<?>> |
getOutputBundles()
Returns the
(uncommitted) Bundles output by this transform. |
Set<org.apache.beam.runners.direct.CommittedResult.OutputType> |
getOutputTypes()
Returns the types of output produced by this
PTransform. |
CopyOnAccessInMemoryStateInternals<?> |
getState()
Returns the State used by the transform.
|
WatermarkManager.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<InputT>> |
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.
|
TransformResult<InputT> |
withLogicalMetricUpdates(MetricUpdates metricUpdates)
Returns a new TransformResult based on this one but overwriting any existing logical metric
updates with
metricUpdates. |
AppliedPTransform<?,?,?> getTransform()
AppliedPTransform that produced this result.
This is treated as an opaque identifier so evaluators can delegate to other evaluators that may not have compatible types.
Iterable<? extends org.apache.beam.runners.direct.DirectRunner.UncommittedBundle<?>> getOutputBundles()
(uncommitted) Bundles output by this transform. These
will be committed by the evaluation context as part of completing this result.
Note that the bundles need not have a uniform type, for example in the case of multi-output
ParDo.
Iterable<? extends WindowedValue<InputT>> getUnprocessedElements()
TransformEvaluator as input but were not
processed.@Nullable AggregatorContainer.Mutator getAggregatorChanges()
AggregatorContainer.Mutator used by this PTransform, or null if
this transform did not use an AggregatorContainer.Mutator.MetricUpdates getLogicalMetricUpdates()
org.joda.time.Instant getWatermarkHold()
If the transform does not set any watermark hold, returns
BoundedWindow.TIMESTAMP_MAX_VALUE.
@Nullable CopyOnAccessInMemoryStateInternals<?> getState()
If this evaluation did not access state, this may return null.
WatermarkManager.TimerUpdate getTimerUpdate()
If this evaluation did not add or remove any timers, returns an empty TimerUpdate.
Set<org.apache.beam.runners.direct.CommittedResult.OutputType> getOutputTypes()
PTransform. This may not include
CommittedResult.OutputType.BUNDLE, as empty bundles may be dropped when the transform is committed.TransformResult<InputT> withLogicalMetricUpdates(MetricUpdates metricUpdates)
metricUpdates.Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.