Documentation ¶
Index ¶
Constants ¶
View Source
const MaxBatchSize = 100 * 1024
the max size of the batch
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch interface { DBPutter DBDeleter ValueSize() int // amount of data in the batch Write() error // Reset resets the batch for reuse Reset() }
Batch is a write-only database that commits changes to its host database when Write is called. Batch cannot be used concurrently.
type DBDeleter ¶
Deleter wraps the database delete operation supported by both batches and regular databases.
Click to show internal directories.
Click to hide internal directories.