Package org.apache.beam.sdk.io.cdap
Class CdapIO.Read<K,V>
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PBegin,PCollection<KV<K,V>>>
org.apache.beam.sdk.io.cdap.CdapIO.Read<K,V>
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
CdapIO
A
PTransform
to read from CDAP source.- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPCollection
<KV<K, V>> Override this method to specify how thisPTransform
should be expanded on the givenInputT
.withCdapPlugin
(Plugin<K, V> plugin) Sets a CDAPPlugin
.withCdapPluginClass
(Class<?> cdapPluginClass) Sets a CDAP Plugin class.withKeyClass
(Class<K> keyClass) Sets a key class.withPluginConfig
(PluginConfig pluginConfig) Sets aPluginConfig
.withPullFrequencySec
(Long pullFrequencySec) Delay in seconds between polling for new records updates.withStartOffset
(Long startOffset) Inclusive start offset from which the reading should be started.withStartPollTimeoutSec
(Long startPollTimeoutSec) Delay in seconds before start polling.withValueClass
(Class<V> valueClass) Sets a value class.Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Constructor Details
-
Read
public Read()
-
-
Method Details
-
withCdapPlugin
Sets a CDAPPlugin
. -
withCdapPluginClass
Sets a CDAP Plugin class. -
withPluginConfig
Sets aPluginConfig
. -
withKeyClass
Sets a key class. -
withValueClass
Sets a value class. -
withPullFrequencySec
Delay in seconds between polling for new records updates. Applicable only for streaming Cdap Plugins. -
withStartPollTimeoutSec
Delay in seconds before start polling. Applicable only for streaming Cdap Plugins. -
withStartOffset
Inclusive start offset from which the reading should be started. Applicable only for streaming Cdap Plugins. -
expand
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<KV<K, V>>>
-