Class StorageApiConvertMessages<DestinationT,ElementT>
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PCollection<KV<DestinationT,ElementT>>,PCollectionTuple>
org.apache.beam.sdk.io.gcp.bigquery.StorageApiConvertMessages<DestinationT,ElementT>
- All Implemented Interfaces:
Serializable,HasDisplayData
public class StorageApiConvertMessages<DestinationT,ElementT>
extends PTransform<PCollection<KV<DestinationT,ElementT>>,PCollectionTuple>
A transform that converts messages to protocol buffers in preparation for writing to BigQuery.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints -
Constructor Summary
ConstructorsConstructorDescriptionStorageApiConvertMessages(org.apache.beam.sdk.io.gcp.bigquery.StorageApiDynamicDestinations<ElementT, DestinationT> dynamicDestinations, BigQueryServices bqServices, TupleTag<BigQueryStorageApiInsertError> failedWritesTag, TupleTag<KV<DestinationT, StorageApiWritePayload>> successfulWritesTag, Coder<BigQueryStorageApiInsertError> errorCoder, Coder<KV<DestinationT, StorageApiWritePayload>> successCoder, @Nullable SerializableFunction<ElementT, RowMutationInformation> rowMutationFn, BadRecordRouter badRecordRouter) -
Method Summary
Modifier and TypeMethodDescriptionexpand(PCollection<KV<DestinationT, ElementT>> input) Override this method to specify how thisPTransformshould be expanded on the givenInputT.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
-
StorageApiConvertMessages
public StorageApiConvertMessages(org.apache.beam.sdk.io.gcp.bigquery.StorageApiDynamicDestinations<ElementT, DestinationT> dynamicDestinations, BigQueryServices bqServices, TupleTag<BigQueryStorageApiInsertError> failedWritesTag, TupleTag<KV<DestinationT, StorageApiWritePayload>> successfulWritesTag, Coder<BigQueryStorageApiInsertError> errorCoder, Coder<KV<DestinationT, StorageApiWritePayload>> successCoder, @Nullable SerializableFunction<ElementT, RowMutationInformation> rowMutationFn, BadRecordRouter badRecordRouter)
-
-
Method Details
-
expand
Description copied from class:PTransformOverride this method to specify how thisPTransformshould be expanded on the givenInputT.NOTE: This method should not be called directly. Instead apply the
PTransformshould be applied to theInputTusing theapplymethod.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:
expandin classPTransform<PCollection<KV<DestinationT,ElementT>>, PCollectionTuple>
-