C# Class RazorDB.KeyValueStore

Inheritance: IDisposable
Afficher le fichier Open project: gnoso/razordb Class Usage Examples

Méthodes publiques

Свойство Type Description
multiPageLock object

Private Properties

Свойство Type Description
AssembleGetResult byte[]
CheckForIncompleteJournalRotation void
InternalEnumerateFromKey Value>>.IEnumerable
InternalGet Value
InternalSet void
ItemKeyFromIndex byte[]

Méthodes publiques

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

Private Methods

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

Method Details

AddToIndex() public méthode

public AddToIndex ( byte itemKey, byte[]>.IEnumerable indexValues ) : void
itemKey byte
indexValues byte[]>.IEnumerable
Résultat void

CleanIndex() public méthode

public CleanIndex ( string indexName ) : void
indexName string
Résultat void

Close() public méthode

public Close ( bool fast = false ) : void
fast bool
Résultat void

CountIndex() public méthode

public CountIndex ( string indexName ) : int
indexName string
Résultat int

Delete() public méthode

public Delete ( byte key ) : void
key byte
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

DropIndex() public méthode

public DropIndex ( string indexName ) : void
indexName string
Résultat void

Enumerate() public méthode

public Enumerate ( ) : byte[]>>.IEnumerable
Résultat byte[]>>.IEnumerable

EnumerateFromKey() public méthode

public EnumerateFromKey ( byte startingKey ) : byte[]>>.IEnumerable
startingKey byte
Résultat byte[]>>.IEnumerable

Find() public méthode

public Find ( string indexName, byte lookupValue ) : byte[]>>.IEnumerable
indexName string
lookupValue byte
Résultat byte[]>>.IEnumerable

FindKeysByIndexStartsWith() public méthode

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
Résultat byte[]>>.IEnumerable

FindStartsWith() public méthode

public FindStartsWith ( string indexName, byte lookupValue ) : byte[]>>.IEnumerable
indexName string
lookupValue byte
Résultat byte[]>>.IEnumerable

Get() public méthode

public Get ( byte key ) : byte[]
key byte
Résultat byte[]

GetSecondaryIndex() public méthode

public GetSecondaryIndex ( string IndexName ) : KeyValueStore
IndexName string
Résultat KeyValueStore

GetTables() public méthode

public GetTables ( ) : IEnumerable
Résultat IEnumerable

KeyValueStore() public méthode

public KeyValueStore ( string baseFileName ) : System
baseFileName string
Résultat System

KeyValueStore() public méthode

public KeyValueStore ( string baseFileName, RazorCache cache ) : System
baseFileName string
cache RazorCache
Résultat System

RemoveFromIndex() public méthode

public RemoveFromIndex ( byte key, byte[]>.IDictionary indexedValues ) : void
key byte
indexedValues byte[]>.IDictionary
Résultat void

RemoveIndexRangeForValue() public méthode

public RemoveIndexRangeForValue ( string indexName, byte startAt, byte value ) : void
indexName string
startAt byte
value byte
Résultat void

RemoveOrphanedPages() public méthode

public RemoveOrphanedPages ( ) : void
Résultat void

RotateMemTable() public méthode

public RotateMemTable ( ) : void
Résultat void

ScanCheck() public méthode

public ScanCheck ( ) : void
Résultat void

Set() public méthode

public Set ( byte key, byte value ) : void
key byte
value byte
Résultat void

Set() public méthode

public Set ( byte key, byte value, byte[]>.IEnumerable indexedValues ) : void
key byte
value byte
indexedValues byte[]>.IEnumerable
Résultat void

Truncate() public méthode

public Truncate ( ) : void
Résultat void

Property Details

multiPageLock public_oe property

public object multiPageLock
Résultat object