C# Class 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");
Inheritance: LevelDbHandle
Afficher le fichier Open project: gro-ove/actools

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
FreeUnManagedObjects ( ) : void

Method Details

Clear() public méthode

Clear all updates buffered in this batch.
public Clear ( ) : void
Résultat void

Delete() public méthode

If the database contains a mapping for "key", erase it. Else do nothing.
public Delete ( byte key ) : WriteBatch
key byte
Résultat WriteBatch

Delete() public méthode

If the database contains a mapping for "key", erase it. Else do nothing.
public Delete ( string key ) : WriteBatch
key string
Résultat WriteBatch

FreeUnManagedObjects() protected méthode

protected FreeUnManagedObjects ( ) : void
Résultat void

Iterate() public méthode

Support for iterating over a batch.
public Iterate ( object state, Action put, Action deleted ) : void
state object
put Action
deleted Action
Résultat void

Put() public méthode

Store the mapping "key->value" in the database.
public Put ( byte key, byte value ) : WriteBatch
key byte
value byte
Résultat WriteBatch

Put() public méthode

Store the mapping "key->value" in the database.
public Put ( string key, string value ) : WriteBatch
key string
value string
Résultat WriteBatch

WriteBatch() public méthode

public WriteBatch ( ) : System
Résultat System