public class AvroGenericRecordToStorageApiProto
extends java.lang.Object
GenericRecord objects to dynamic protocol message,
for use with the Storage write API.| Constructor and Description |
|---|
AvroGenericRecordToStorageApiProto() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.protobuf.DynamicMessage |
messageFromGenericRecord(com.google.protobuf.Descriptors.Descriptor descriptor,
GenericRecord record,
java.lang.String changeType,
long changeSequenceNum)
Forwards to
#messageFromGenericRecord(Descriptor,
GenericRecord, String, String) via Long.toHexString(long). |
static com.google.protobuf.DynamicMessage |
messageFromGenericRecord(com.google.protobuf.Descriptors.Descriptor descriptor,
GenericRecord record,
java.lang.String changeType,
java.lang.String changeSequenceNum)
Given an Avro
GenericRecord object, returns a protocol-buffer message that can be used
to write data using the BigQuery Storage streaming API. |
static com.google.cloud.bigquery.storage.v1.TableSchema |
protoTableSchemaFromAvroSchema(Schema schema)
Given an Avro Schema, returns a protocol-buffer TableSchema that can be used to write data
through BigQuery Storage API.
|
public static com.google.cloud.bigquery.storage.v1.TableSchema protoTableSchemaFromAvroSchema(Schema schema)
schema - An Avro Schemapublic static com.google.protobuf.DynamicMessage messageFromGenericRecord(com.google.protobuf.Descriptors.Descriptor descriptor,
GenericRecord record,
@Nullable
java.lang.String changeType,
long changeSequenceNum)
#messageFromGenericRecord(Descriptor,
GenericRecord, String, String) via Long.toHexString(long).public static com.google.protobuf.DynamicMessage messageFromGenericRecord(com.google.protobuf.Descriptors.Descriptor descriptor,
GenericRecord record,
@Nullable
java.lang.String changeType,
@Nullable
java.lang.String changeSequenceNum)
GenericRecord object, returns a protocol-buffer message that can be used
to write data using the BigQuery Storage streaming API.descriptor - The Descriptor for the DynamicMessage resultrecord - An Avro GenericRecord