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
파일 보기 프로젝트 열기: gro-ove/actools

공개 메소드들

메소드 설명
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