public abstract static class CdapIO.Write<K,V> extends PTransform<PCollection<KV<K,V>>,PDone>
PTransform to write to CDAP sink.name, resourceHints| Constructor and Description |
|---|
Write() |
| Modifier and Type | Method and Description |
|---|---|
PDone |
expand(PCollection<KV<K,V>> input)
Override this method to specify how this
PTransform should be expanded on the given
InputT. |
CdapIO.Write<K,V> |
withCdapPlugin(Plugin<K,V> plugin)
Sets a CDAP
Plugin. |
CdapIO.Write<K,V> |
withCdapPluginClass(java.lang.Class<?> cdapPluginClass)
Sets a CDAP Plugin class.
|
CdapIO.Write<K,V> |
withKeyClass(java.lang.Class<K> keyClass)
Sets a key class.
|
CdapIO.Write<K,V> |
withLocksDirPath(java.lang.String locksDirPath)
Sets path to directory where locks will be stored.
|
CdapIO.Write<K,V> |
withPluginConfig(PluginConfig pluginConfig)
Sets a
PluginConfig. |
CdapIO.Write<K,V> |
withValueClass(java.lang.Class<V> valueClass)
Sets a value class.
|
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setResourceHints, toString, validate, validatepublic CdapIO.Write<K,V> withCdapPluginClass(java.lang.Class<?> cdapPluginClass)
public CdapIO.Write<K,V> withPluginConfig(PluginConfig pluginConfig)
PluginConfig.public CdapIO.Write<K,V> withKeyClass(java.lang.Class<K> keyClass)
public CdapIO.Write<K,V> withLocksDirPath(java.lang.String locksDirPath)
public CdapIO.Write<K,V> withValueClass(java.lang.Class<V> valueClass)
public PDone expand(PCollection<KV<K,V>> input)
PTransformPTransform should be expanded on the given
InputT.
NOTE: This method should not be called directly. Instead apply the PTransform should
be applied to the InputT using the apply 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).
expand in class PTransform<PCollection<KV<K,V>>,PDone>