C# Класс RazorDB.KeyValueStore

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
multiPageLock object

Private Properties

Свойство Тип Описание
AssembleGetResult byte[]
CheckForIncompleteJournalRotation void
InternalEnumerateFromKey Value>>.IEnumerable
InternalGet Value
InternalSet void
ItemKeyFromIndex byte[]

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

Метод Описание
AddToIndex ( byte itemKey, byte[]>.IEnumerable indexValues ) : void
CleanIndex ( string indexName ) : void
Close ( bool fast = false ) : void
CountIndex ( string indexName ) : int
Delete ( byte key ) : void
Dispose ( ) : void
DropIndex ( string indexName ) : void
Enumerate ( ) : byte[]>>.IEnumerable
EnumerateFromKey ( byte startingKey ) : byte[]>>.IEnumerable
Find ( string indexName, byte lookupValue ) : byte[]>>.IEnumerable
FindKeysByIndexStartsWith ( string indexName, byte lookupValue ) : byte[]>>.IEnumerable

Return only the bytes for the key linked to the index (record key in this case is the index value)

FindStartsWith ( string indexName, byte lookupValue ) : byte[]>>.IEnumerable
Get ( byte key ) : byte[]
GetSecondaryIndex ( string IndexName ) : KeyValueStore
GetTables ( ) : IEnumerable
KeyValueStore ( string baseFileName ) : System
KeyValueStore ( string baseFileName, RazorCache cache ) : System
RemoveFromIndex ( byte key, byte[]>.IDictionary indexedValues ) : void
RemoveIndexRangeForValue ( string indexName, byte startAt, byte value ) : void
RemoveOrphanedPages ( ) : void
RotateMemTable ( ) : void
ScanCheck ( ) : void
Set ( byte key, byte value ) : void
Set ( byte key, byte value, byte[]>.IEnumerable indexedValues ) : void
Truncate ( ) : void

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

Метод Описание
AssembleGetResult ( Key lookupKey, Value result ) : byte[]
CheckForIncompleteJournalRotation ( string baseFileName, int currentMemTableVersion ) : void
InternalEnumerateFromKey ( byte startingKey ) : Value>>.IEnumerable
InternalGet ( Key lookupKey ) : Value
InternalSet ( Key k, Value v, byte[]>.IEnumerable indexedValues ) : void
ItemKeyFromIndex ( byte[]>.KeyValuePair indexPair, int indexKeyLen = -1 ) : byte[]

Get the item key from an index

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

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

public AddToIndex ( byte itemKey, byte[]>.IEnumerable indexValues ) : void
itemKey byte
indexValues byte[]>.IEnumerable
Результат void

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

public CleanIndex ( string indexName ) : void
indexName string
Результат void

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

public Close ( bool fast = false ) : void
fast bool
Результат void

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

public CountIndex ( string indexName ) : int
indexName string
Результат int

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

public Delete ( byte key ) : void
key byte
Результат void

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

public Dispose ( ) : void
Результат void

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

public DropIndex ( string indexName ) : void
indexName string
Результат void

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

public Enumerate ( ) : byte[]>>.IEnumerable
Результат byte[]>>.IEnumerable

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

public EnumerateFromKey ( byte startingKey ) : byte[]>>.IEnumerable
startingKey byte
Результат byte[]>>.IEnumerable

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

public Find ( string indexName, byte lookupValue ) : byte[]>>.IEnumerable
indexName string
lookupValue byte
Результат byte[]>>.IEnumerable

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

Return only the bytes for the key linked to the index (record key in this case is the index value)
public FindKeysByIndexStartsWith ( string indexName, byte lookupValue ) : byte[]>>.IEnumerable
indexName string
lookupValue byte
Результат byte[]>>.IEnumerable

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

public FindStartsWith ( string indexName, byte lookupValue ) : byte[]>>.IEnumerable
indexName string
lookupValue byte
Результат byte[]>>.IEnumerable

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

public Get ( byte key ) : byte[]
key byte
Результат byte[]

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

public GetSecondaryIndex ( string IndexName ) : KeyValueStore
IndexName string
Результат KeyValueStore

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

public GetTables ( ) : IEnumerable
Результат IEnumerable

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

public KeyValueStore ( string baseFileName ) : System
baseFileName string
Результат System

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

public KeyValueStore ( string baseFileName, RazorCache cache ) : System
baseFileName string
cache RazorCache
Результат System

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

public RemoveFromIndex ( byte key, byte[]>.IDictionary indexedValues ) : void
key byte
indexedValues byte[]>.IDictionary
Результат void

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

public RemoveIndexRangeForValue ( string indexName, byte startAt, byte value ) : void
indexName string
startAt byte
value byte
Результат void

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

public RemoveOrphanedPages ( ) : void
Результат void

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

public RotateMemTable ( ) : void
Результат void

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

public ScanCheck ( ) : void
Результат void

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

public Set ( byte key, byte value ) : void
key byte
value byte
Результат void

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

public Set ( byte key, byte value, byte[]>.IEnumerable indexedValues ) : void
key byte
value byte
indexedValues byte[]>.IEnumerable
Результат void

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

public Truncate ( ) : void
Результат void

Описание свойств

multiPageLock публичное свойство

public object multiPageLock
Результат object