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

An iterator yields a sequence of key/value pairs from a database.
Наследование: LevelDbHandle
Показать файл Открыть проект

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

Метод Описание
IsValid ( ) : bool

An iterator is either positioned at a key/value pair, or not valid.

Key ( ) : byte[]

Return the key for the current entry. REQUIRES: Valid()

KeyAsInt ( ) : int

Return the key for the current entry. REQUIRES: Valid()

KeyAsString ( ) : string

Return the key for the current entry. REQUIRES: Valid()

Next ( ) : void

Moves to the next entry in the source. After this call, Valid() is true iff the iterator was not positioned at the last entry in the source. REQUIRES: Valid()

Prev ( ) : void

Moves to the previous entry in the source. After this call, Valid() is true iff the iterator was not positioned at the first entry in source. REQUIRES: Valid()

Seek ( byte key ) : void

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.

Seek ( int key ) : void

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.

Seek ( string key ) : void

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.

SeekToFirst ( ) : void

Position at the first key in the source. The iterator is Valid() after this call iff the source is not empty.

SeekToLast ( ) : void

Position at the last key in the source. The iterator is Valid() after this call iff the source is not empty.

Value ( ) : byte[]

Return the value for the current entry. REQUIRES: Valid()

ValueAsInts ( ) : int[]

Return the value for the current entry. REQUIRES: Valid()

ValueAsString ( ) : string

Return the value for the current entry. REQUIRES: Valid()

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

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

Приватные методы

Метод Описание
Iterator ( IntPtr handle ) : System
Throw ( ) : void

If an error has occurred, throw it.

Throw ( Exception>.Func exception ) : void

If an error has occurred, throw it.

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

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

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

IsValid() публичный Метод

An iterator is either positioned at a key/value pair, or not valid.
public IsValid ( ) : bool
Результат bool

Key() публичный Метод

Return the key for the current entry. REQUIRES: Valid()
public Key ( ) : byte[]
Результат byte[]

KeyAsInt() публичный Метод

Return the key for the current entry. REQUIRES: Valid()
public KeyAsInt ( ) : int
Результат int

KeyAsString() публичный Метод

Return the key for the current entry. REQUIRES: Valid()
public KeyAsString ( ) : string
Результат string

Next() публичный Метод

Moves to the next entry in the source. After this call, Valid() is true iff the iterator was not positioned at the last entry in the source. REQUIRES: Valid()
public Next ( ) : void
Результат void

Prev() публичный Метод

Moves to the previous entry in the source. After this call, Valid() is true iff the iterator was not positioned at the first entry in source. REQUIRES: Valid()
public Prev ( ) : void
Результат void

Seek() публичный Метод

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.
public Seek ( byte key ) : void
key byte
Результат void

Seek() публичный Метод

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.
public Seek ( int key ) : void
key int
Результат void

Seek() публичный Метод

Position at the first key in the source that at or past target The iterator is Valid() after this call iff the source contains an entry that comes at or past target.
public Seek ( string key ) : void
key string
Результат void

SeekToFirst() публичный Метод

Position at the first key in the source. The iterator is Valid() after this call iff the source is not empty.
public SeekToFirst ( ) : void
Результат void

SeekToLast() публичный Метод

Position at the last key in the source. The iterator is Valid() after this call iff the source is not empty.
public SeekToLast ( ) : void
Результат void

Value() публичный Метод

Return the value for the current entry. REQUIRES: Valid()
public Value ( ) : byte[]
Результат byte[]

ValueAsInts() публичный Метод

Return the value for the current entry. REQUIRES: Valid()
public ValueAsInts ( ) : int[]
Результат int[]

ValueAsString() публичный Метод

Return the value for the current entry. REQUIRES: Valid()
public ValueAsString ( ) : string
Результат string