Interface HadoopFormatIO.Write.WriteBuilder<KeyT,ValueT>
- Type Parameters:
KeyT
- Key type to writeValueT
- Value type to write
- Enclosing class:
HadoopFormatIO.Write<KeyT,
ValueT>
public static interface HadoopFormatIO.Write.WriteBuilder<KeyT,ValueT>
Main builder of Write transformation.
-
Method Summary
Modifier and TypeMethodDescriptionwithConfiguration
(org.apache.hadoop.conf.Configuration config) Writes to the sink using the options provided by the given hadoop configuration.withConfigurationTransform
(PTransform<PCollection<? extends KV<KeyT, ValueT>>, PCollectionView<org.apache.hadoop.conf.Configuration>> configTransform) Writes to the sink using configuration created by providedconfigurationTransformation
.
-
Method Details
-
withConfiguration
HadoopFormatIO.Write.PartitionedWriterBuilder<KeyT,ValueT> withConfiguration(org.apache.hadoop.conf.Configuration config) Writes to the sink using the options provided by the given hadoop configuration.Note: Works only for
PCollection.IsBounded.BOUNDED
PCollection
with globalWindowingStrategy
.- Parameters:
config
- hadoop configuration.- Returns:
- WriteBuilder with set configuration
- Throws:
NullPointerException
- when the configuration is null- See Also:
-
withConfigurationTransform
HadoopFormatIO.Write.ExternalSynchronizationBuilder<KeyT,ValueT> withConfigurationTransform(PTransform<PCollection<? extends KV<KeyT, ValueT>>, PCollectionView<org.apache.hadoop.conf.Configuration>> configTransform) Writes to the sink using configuration created by providedconfigurationTransformation
.This type is useful especially for processing unbounded windowed data but can be used also for batch processing.
Supports only
PCollection
withDefaultTrigger
ing and without allowed lateness- Parameters:
configTransform
- configuration transformation interface- Returns:
- WriteBuilder with set configuration transformation
- Throws:
NullPointerException
- whenconfigurationTransformation
isnull
- See Also:
-