C# Class EventStore.Core.Index.TableIndex

Inheritance: ITableIndex
Afficher le fichier Open project: EventStore/EventStore Class Usage Examples

Méthodes publiques

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

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

public Add ( long commitPos, string streamId, int version, long position ) : void
commitPos long
streamId string
version int
position long
Résultat void

AddEntries() public méthode

public AddEntries ( long commitPos, IList entries ) : void
commitPos long
entries IList
Résultat void

Close() public méthode

public Close ( bool removeFiles = true ) : void
removeFiles bool
Résultat void

GetRange() public méthode

public GetRange ( string streamId, int startVersion, int endVersion, int limit = null ) : IEnumerable
streamId string
startVersion int
endVersion int
limit int
Résultat IEnumerable

Initialize() public méthode

public Initialize ( long chaserCheckpoint ) : void
chaserCheckpoint long
Résultat void

TableIndex() public méthode

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
Résultat System

TryGetLatestEntry() public méthode

public TryGetLatestEntry ( string streamId, IndexEntry &entry ) : bool
streamId string
entry IndexEntry
Résultat bool

TryGetOldestEntry() public méthode

public TryGetOldestEntry ( string streamId, IndexEntry &entry ) : bool
streamId string
entry IndexEntry
Résultat bool

TryGetOneValue() public méthode

public TryGetOneValue ( string streamId, int version, long &position ) : bool
streamId string
version int
position long
Résultat bool