Batch
Batch¶
Represents a batch of records for writing
Kind: global class
batch.add(ts, data, contentType, labels)¶
Add record to batch
Kind: instance method of Batch
Param | Type | Description |
---|---|---|
ts | timestamp of record as a UNIX timestamp in microseconds | |
data | Buffer | string |
data to write |
contentType | default: application/octet-stream | |
labels | default: |
batch.write()¶
Write batch to entry
Kind: instance method of Batch
batch.items()¶
Get records in batch sorted by timestamp
Kind: instance method of Batch