C# Класс AcTools.LapTimes.LevelDbUtils.WriteBatch

WriteBatch holds a collection of updates to apply atomically to a DB. The updates are applied in the order in which they are added to the WriteBatch. For example, the value of "key" will be "v3" after the following batch is written: batch.Put("key", "v1"); batch.Delete("key"); batch.Put("key", "v2"); batch.Put("key", "v3");
Наследование: LevelDbHandle
Показать файл Открыть проект

Открытые методы

Метод Описание
Clear ( ) : void

Clear all updates buffered in this batch.

Delete ( byte key ) : WriteBatch

If the database contains a mapping for "key", erase it. Else do nothing.

Delete ( string key ) : WriteBatch

If the database contains a mapping for "key", erase it. Else do nothing.

Iterate ( object state, Action put, Action deleted ) : void

Support for iterating over a batch.

Put ( byte key, byte value ) : WriteBatch

Store the mapping "key->value" in the database.

Put ( string key, string value ) : WriteBatch

Store the mapping "key->value" in the database.

WriteBatch ( ) : System

Защищенные методы

Метод Описание
FreeUnManagedObjects ( ) : void

Описание методов

Clear() публичный метод

Clear all updates buffered in this batch.
public Clear ( ) : void
Результат void

Delete() публичный метод

If the database contains a mapping for "key", erase it. Else do nothing.
public Delete ( byte key ) : WriteBatch
key byte
Результат WriteBatch

Delete() публичный метод

If the database contains a mapping for "key", erase it. Else do nothing.
public Delete ( string key ) : WriteBatch
key string
Результат WriteBatch

FreeUnManagedObjects() защищенный метод

protected FreeUnManagedObjects ( ) : void
Результат void

Iterate() публичный метод

Support for iterating over a batch.
public Iterate ( object state, Action put, Action deleted ) : void
state object
put Action
deleted Action
Результат void

Put() публичный метод

Store the mapping "key->value" in the database.
public Put ( byte key, byte value ) : WriteBatch
key byte
value byte
Результат WriteBatch

Put() публичный метод

Store the mapping "key->value" in the database.
public Put ( string key, string value ) : WriteBatch
key string
value string
Результат WriteBatch

WriteBatch() публичный метод

public WriteBatch ( ) : System
Результат System