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