public class TableRowToStorageApiProto
extends java.lang.Object
TableRow
objects to dynamic protocol message, for use
with the Storage write API.Modifier and Type | Class and Description |
---|---|
static class |
TableRowToStorageApiProto.SchemaConversionException |
static class |
TableRowToStorageApiProto.SchemaDoesntMatchException |
static class |
TableRowToStorageApiProto.SchemaTooNarrowException |
Constructor and Description |
---|
TableRowToStorageApiProto() |
Modifier and Type | Method and Description |
---|---|
static Descriptors.Descriptor |
getDescriptorFromTableSchema(TableSchema jsonSchema)
Given a BigQuery TableSchema, returns a protocol-buffer Descriptor that can be used to write
data using the BigQuery Storage API.
|
static java.lang.Object |
jsonValueFromMessageValue(Descriptors.FieldDescriptor fieldDescriptor,
java.lang.Object fieldValue,
boolean expandRepeated) |
static DynamicMessage |
messageFromMap(org.apache.beam.sdk.io.gcp.bigquery.TableRowToStorageApiProto.SchemaInformation schemaInformation,
Descriptors.Descriptor descriptor,
java.util.AbstractMap<java.lang.String,java.lang.Object> map,
boolean ignoreUnknownValues) |
static DynamicMessage |
messageFromTableRow(org.apache.beam.sdk.io.gcp.bigquery.TableRowToStorageApiProto.SchemaInformation schemaInformation,
Descriptors.Descriptor descriptor,
TableRow tableRow,
boolean ignoreUnkownValues)
Given a BigQuery TableRow, returns a protocol-buffer message that can be used to write data
using the BigQuery Storage API.
|
static TableRow |
tableRowFromMessage(Message message) |
public static Descriptors.Descriptor getDescriptorFromTableSchema(TableSchema jsonSchema) throws Descriptors.DescriptorValidationException
public static DynamicMessage messageFromMap(org.apache.beam.sdk.io.gcp.bigquery.TableRowToStorageApiProto.SchemaInformation schemaInformation, Descriptors.Descriptor descriptor, java.util.AbstractMap<java.lang.String,java.lang.Object> map, boolean ignoreUnknownValues) throws TableRowToStorageApiProto.SchemaConversionException
public static DynamicMessage messageFromTableRow(org.apache.beam.sdk.io.gcp.bigquery.TableRowToStorageApiProto.SchemaInformation schemaInformation, Descriptors.Descriptor descriptor, TableRow tableRow, boolean ignoreUnkownValues) throws TableRowToStorageApiProto.SchemaConversionException
public static java.lang.Object jsonValueFromMessageValue(Descriptors.FieldDescriptor fieldDescriptor, java.lang.Object fieldValue, boolean expandRepeated)