public class BeamRowToStorageApiProto
extends java.lang.Object
Row objects to dynamic protocol message, for use with
the Storage write API.| Constructor and Description |
|---|
BeamRowToStorageApiProto() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptorFromSchema(org.apache.beam.sdk.schemas.Schema schema)
Given a Beam Schema, returns a protocol-buffer Descriptor that can be used to write data using
the BigQuery Storage API.
|
static com.google.protobuf.DynamicMessage |
messageFromBeamRow(com.google.protobuf.Descriptors.Descriptor descriptor,
org.apache.beam.sdk.values.Row row)
Given a Beam
Row object, returns a protocol-buffer message that can be used to write
data using the BigQuery Storage streaming API. |
public static com.google.protobuf.Descriptors.Descriptor getDescriptorFromSchema(org.apache.beam.sdk.schemas.Schema schema)
throws com.google.protobuf.Descriptors.DescriptorValidationException
com.google.protobuf.Descriptors.DescriptorValidationExceptionpublic static com.google.protobuf.DynamicMessage messageFromBeamRow(com.google.protobuf.Descriptors.Descriptor descriptor,
org.apache.beam.sdk.values.Row row)
Row object, returns a protocol-buffer message that can be used to write
data using the BigQuery Storage streaming API.