Package org.apache.beam.sdk.io.hcatalog
Class HCatalogIO.Write
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PCollection<org.apache.hive.hcatalog.data.HCatRecord>,PDone>
org.apache.beam.sdk.io.hcatalog.HCatalogIO.Write
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
HCatalogIO
public abstract static class HCatalogIO.Write
extends PTransform<PCollection<org.apache.hive.hcatalog.data.HCatRecord>,PDone>
A
PTransform
to write to a HCatalog managed 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 TypeMethodDescriptionexpand
(PCollection<org.apache.hive.hcatalog.data.HCatRecord> input) Override this method to specify how thisPTransform
should be expanded on the givenInputT
.withBatchSize
(long batchSize) Sets batch size for the write operation.withConfigProperties
(Map<String, String> configProperties) Sets the configuration properties like metastore URI.withDatabase
(String database) Sets the database name.withPartition
(Map<String, String> partition) Sets the partition details.Sets the table name to write to, the table should exist beforehand.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
-
Write
public Write()
-
-
Method Details
-
withConfigProperties
Sets the configuration properties like metastore URI. -
withDatabase
Sets the database name. This is optional, assumes 'default' database if none specified -
withTable
Sets the table name to write to, the table should exist beforehand. -
withPartition
Sets the partition details. -
withBatchSize
Sets batch size for the write operation. This is optional, assumes a default batch size of 1024 if not set -
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<PCollection<org.apache.hive.hcatalog.data.HCatRecord>,
PDone>
-