Package org.apache.beam.sdk.transforms
Class PeriodicImpulse
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<PBegin,PCollection<org.joda.time.Instant>>
-
- org.apache.beam.sdk.transforms.PeriodicImpulse
-
- All Implemented Interfaces:
java.io.Serializable
,HasDisplayData
public class PeriodicImpulse extends PTransform<PBegin,PCollection<org.joda.time.Instant>>
APTransform
which produces a sequence of elements at fixed runtime intervals.If applyWindowing() is specified, each element will be assigned to its own fixed window.
See
PeriodicSequence
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
name, resourceHints
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PeriodicImpulse
applyWindowing()
static PeriodicImpulse
create()
PCollection<org.joda.time.Instant>
expand(PBegin input)
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.PeriodicImpulse
startAt(org.joda.time.Instant startTime)
PeriodicImpulse
stopAt(org.joda.time.Instant stopTime)
PeriodicImpulse
withInterval(org.joda.time.Duration interval)
-
Methods inherited from class org.apache.beam.sdk.transforms.PTransform
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate, validate
-
-
-
-
Method Detail
-
create
public static PeriodicImpulse create()
-
startAt
public PeriodicImpulse startAt(org.joda.time.Instant startTime)
-
stopAt
public PeriodicImpulse stopAt(org.joda.time.Instant stopTime)
-
withInterval
public PeriodicImpulse withInterval(org.joda.time.Duration interval)
-
applyWindowing
public PeriodicImpulse applyWindowing()
-
expand
public PCollection<org.joda.time.Instant> expand(PBegin input)
Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
method.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expand
in classPTransform<PBegin,PCollection<org.joda.time.Instant>>
-
-