C# 클래스 EventStore.Core.Index.TableIndex

상속: ITableIndex
파일 보기 프로젝트 열기: EventStore/EventStore 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Add() 공개 메소드

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

AddEntries() 공개 메소드

public AddEntries ( long commitPos, IList entries ) : void
commitPos long
entries IList
리턴 void

Close() 공개 메소드

public Close ( bool removeFiles = true ) : void
removeFiles bool
리턴 void

GetRange() 공개 메소드

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

Initialize() 공개 메소드

public Initialize ( long chaserCheckpoint ) : void
chaserCheckpoint long
리턴 void

TableIndex() 공개 메소드

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
리턴 System

TryGetLatestEntry() 공개 메소드

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

TryGetOldestEntry() 공개 메소드

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

TryGetOneValue() 공개 메소드

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