C# Class RazorDB.KeyValueStore

Inheritance: IDisposable
ファイルを表示 Open project: gnoso/razordb Class Usage Examples

Public Properties

Property Type Description
multiPageLock object

Private Properties

Property Type Description
AssembleGetResult byte[]
CheckForIncompleteJournalRotation void
InternalEnumerateFromKey Value>>.IEnumerable
InternalGet Value
InternalSet void
ItemKeyFromIndex byte[]

Public Methods

Method 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

Method 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 method

public AddToIndex ( byte itemKey, byte[]>.IEnumerable indexValues ) : void
itemKey byte
indexValues byte[]>.IEnumerable
return void

CleanIndex() public method

public CleanIndex ( string indexName ) : void
indexName string
return void

Close() public method

public Close ( bool fast = false ) : void
fast bool
return void

CountIndex() public method

public CountIndex ( string indexName ) : int
indexName string
return int

Delete() public method

public Delete ( byte key ) : void
key byte
return void

Dispose() public method

public Dispose ( ) : void
return void

DropIndex() public method

public DropIndex ( string indexName ) : void
indexName string
return void

Enumerate() public method

public Enumerate ( ) : byte[]>>.IEnumerable
return byte[]>>.IEnumerable

EnumerateFromKey() public method

public EnumerateFromKey ( byte startingKey ) : byte[]>>.IEnumerable
startingKey byte
return byte[]>>.IEnumerable

Find() public method

public Find ( string indexName, byte lookupValue ) : byte[]>>.IEnumerable
indexName string
lookupValue byte
return byte[]>>.IEnumerable

FindKeysByIndexStartsWith() public method

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
return byte[]>>.IEnumerable

FindStartsWith() public method

public FindStartsWith ( string indexName, byte lookupValue ) : byte[]>>.IEnumerable
indexName string
lookupValue byte
return byte[]>>.IEnumerable

Get() public method

public Get ( byte key ) : byte[]
key byte
return byte[]

GetSecondaryIndex() public method

public GetSecondaryIndex ( string IndexName ) : KeyValueStore
IndexName string
return KeyValueStore

GetTables() public method

public GetTables ( ) : IEnumerable
return IEnumerable

KeyValueStore() public method

public KeyValueStore ( string baseFileName ) : System
baseFileName string
return System

KeyValueStore() public method

public KeyValueStore ( string baseFileName, RazorCache cache ) : System
baseFileName string
cache RazorCache
return System

RemoveFromIndex() public method

public RemoveFromIndex ( byte key, byte[]>.IDictionary indexedValues ) : void
key byte
indexedValues byte[]>.IDictionary
return void

RemoveIndexRangeForValue() public method

public RemoveIndexRangeForValue ( string indexName, byte startAt, byte value ) : void
indexName string
startAt byte
value byte
return void

RemoveOrphanedPages() public method

public RemoveOrphanedPages ( ) : void
return void

RotateMemTable() public method

public RotateMemTable ( ) : void
return void

ScanCheck() public method

public ScanCheck ( ) : void
return void

Set() public method

public Set ( byte key, byte value ) : void
key byte
value byte
return void

Set() public method

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

Truncate() public method

public Truncate ( ) : void
return void

Property Details

multiPageLock public_oe property

public object multiPageLock
return object