C# Class EventStore.Core.Index.TableIndex

Inheritance: ITableIndex
Mostra file Open project: EventStore/EventStore Class Usage Examples

Public Methods

Method Description
Add ( long commitPos, string streamId, int version, long position ) : void
AddEntries ( long commitPos, IList entries ) : void
Close ( bool removeFiles = true ) : void
GetRange ( string streamId, int startVersion, int endVersion, int limit = null ) : IEnumerable
Initialize ( long chaserCheckpoint ) : void
TableIndex ( string directory, IHasher lowHasher, IHasher highHasher, Func memTableFactory, Func tfReaderFactory, byte ptableVersion, int maxSizeForMemory = 1000000, int maxTablesPerLevel = 4, bool additionalReclaim = false, bool inMem = false, int indexCacheDepth = 16 ) : System
TryGetLatestEntry ( string streamId, IndexEntry &entry ) : bool
TryGetOldestEntry ( string streamId, IndexEntry &entry ) : bool
TryGetOneValue ( string streamId, int version, long &position ) : bool

Private Methods

Method Description
CreateHash ( string streamId ) : ulong
CreateIfDoesNotExist ( string directory ) : void
CreateIndexEntry ( EventStore.Core.Index.IndexKey key ) : IndexEntry
CreateIndexKey ( string streamId, int version, long position ) : EventStore.Core.Index.IndexKey
DumpAndCopyIndex ( ) : void
GetMaxOf ( List enumerators ) : int
GetRangeInternal ( ulong hash, int startVersion, int endVersion, int limit = null ) : IEnumerable
LogIndexMapContent ( string indexmapFile ) : void
ReadEntry ( EventStore.Core.TransactionLog.TFReaderLease reader, long position ) : bool>.Tuple
ReadOffQueue ( ) : void
ReclaimMemoryIfNeeded ( List awaitingMemTables ) : void
TryGetLatestEntryInternal ( ulong stream, IndexEntry &entry ) : bool
TryGetOldestEntryInternal ( ulong stream, IndexEntry &entry ) : bool
TryGetOneValueInternal ( ulong stream, int version, long &position ) : bool
UpgradeHash ( string streamId, ulong lowHash ) : ulong

Method Details

Add() public method

public Add ( long commitPos, string streamId, int version, long position ) : void
commitPos long
streamId string
version int
position long
return void

AddEntries() public method

public AddEntries ( long commitPos, IList entries ) : void
commitPos long
entries IList
return void

Close() public method

public Close ( bool removeFiles = true ) : void
removeFiles bool
return void

GetRange() public method

public GetRange ( string streamId, int startVersion, int endVersion, int limit = null ) : IEnumerable
streamId string
startVersion int
endVersion int
limit int
return IEnumerable

Initialize() public method

public Initialize ( long chaserCheckpoint ) : void
chaserCheckpoint long
return void

TableIndex() public method

public TableIndex ( string directory, IHasher lowHasher, IHasher highHasher, Func memTableFactory, Func tfReaderFactory, byte ptableVersion, int maxSizeForMemory = 1000000, int maxTablesPerLevel = 4, bool additionalReclaim = false, bool inMem = false, int indexCacheDepth = 16 ) : System
directory string
lowHasher IHasher
highHasher IHasher
memTableFactory Func
tfReaderFactory Func
ptableVersion byte
maxSizeForMemory int
maxTablesPerLevel int
additionalReclaim bool
inMem bool
indexCacheDepth int
return System

TryGetLatestEntry() public method

public TryGetLatestEntry ( string streamId, IndexEntry &entry ) : bool
streamId string
entry IndexEntry
return bool

TryGetOldestEntry() public method

public TryGetOldestEntry ( string streamId, IndexEntry &entry ) : bool
streamId string
entry IndexEntry
return bool

TryGetOneValue() public method

public TryGetOneValue ( string streamId, int version, long &position ) : bool
streamId string
version int
position long
return bool