Constructor
new Writer(params)
Creates a new Writer instance.
Parameters:
Name | Type | Description |
---|---|---|
params |
WriterOptions |
The parameters for the Writer. See WriterOptions docs for more information. |
Methods
appendRows(rows, offsetValue) → {managedwriter.PendingWrite}
Schedules the writing of rows at given offset.
Parameters:
Name | Type | Description |
---|---|---|
rows |
google.cloud.bigquery.storage.v1.IProtoRows | null |
the rows in serialized format to write to BigQuery. |
offsetValue |
number | Long | string | null |
the offset of the first row. |
Returns:
Type | Description |
---|---|
managedwriter.PendingWrite |
The pending write |
setDefaultMissingValueInterpretation(defaultMissingValueInterpretation)
Update how missing values are interpreted for the given stream.
Parameters:
Name | Type | Description |
---|---|---|
defaultMissingValueInterpretation |
MissingValueInterpretation |
setMissingValueInterpretations(missingValueInterpretations)
Update how missing values are interpreted for individual columns.
Parameters:
Name | Type | Description |
---|---|---|
missingValueInterpretations |
MissingValueInterpretationMap |
setProtoDescriptor(protoDescriptor)
Update the proto descriptor for the Writer. Internally a reconnection event is gonna happen to apply the new proto descriptor.
Parameters:
Name | Type | Description |
---|---|---|
protoDescriptor |
IDescriptorProto |
The proto descriptor. |