C# Class EventStore.Core.Index.PTable

Inheritance: ISearchTable, IDisposable
Datei anzeigen Open project: EventStore/EventStore Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetRange ( ulong stream, int startNumber, int endNumber, int limit = null ) : IEnumerable
IterateAllInOrder ( ) : IEnumerable
MarkForDestruction ( ) : void
TryGetLatestEntry ( ulong stream, IndexEntry &entry ) : bool
TryGetOldestEntry ( ulong stream, IndexEntry &entry ) : bool
TryGetOneValue ( ulong stream, int number, long &position ) : bool
ValidateHash ( byte fromFile, byte computed ) : void
WaitForDisposal ( System.TimeSpan timeout ) : void
WaitForDisposal ( int timeout ) : void

Private Methods

Method Description
BuildKey ( ulong stream, int version ) : IndexEntryKey
CacheMidpointsAndVerifyHash ( int depth ) : Midpoint[]
GetDepth ( long fileSize, int minDepth ) : int
GetHash ( ulong hash ) : ulong
GetMidPoints ( ) : Midpoint[]
GetWorkItem ( ) : System.Threading.WorkItem
LocateRecordRange ( IndexEntryKey key ) : Range
LowerMidpointBound ( Midpoint midpoints, IndexEntryKey key ) : long
OnAllWorkItemsDisposed ( ) : void
PTable ( string filename, System.Guid id, int initialReaders = ESConsts.PTableInitialReaderCount, int maxReaders = ESConsts.PTableMaxReaderCount, int depth = 16 ) : System
PositionAtEntry ( int indexEntrySize, long indexNum, System.Threading.WorkItem workItem ) : void
ReadEntry ( int indexEntrySize, long indexNum, System.Threading.WorkItem workItem, int ptableVersion ) : IndexEntry
ReadNextNoSeek ( System.Threading.WorkItem workItem, int ptableVersion ) : IndexEntry
ReadUntilWithMd5 ( long nextPos, Stream fileStream, MD5 md5 ) : void
ReturnWorkItem ( System.Threading.WorkItem workItem ) : void
TryGetLargestEntry ( ulong stream, int startNumber, int endNumber, IndexEntry &entry ) : bool
TryGetSmallestEntry ( ulong stream, int startNumber, int endNumber, IndexEntry &entry ) : bool
UpperMidpointBound ( Midpoint midpoints, IndexEntryKey key ) : long

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetRange() public method

public GetRange ( ulong stream, int startNumber, int endNumber, int limit = null ) : IEnumerable
stream ulong
startNumber int
endNumber int
limit int
return IEnumerable

IterateAllInOrder() public method

public IterateAllInOrder ( ) : IEnumerable
return IEnumerable

MarkForDestruction() public method

public MarkForDestruction ( ) : void
return void

TryGetLatestEntry() public method

public TryGetLatestEntry ( ulong stream, IndexEntry &entry ) : bool
stream ulong
entry IndexEntry
return bool

TryGetOldestEntry() public method

public TryGetOldestEntry ( ulong stream, IndexEntry &entry ) : bool
stream ulong
entry IndexEntry
return bool

TryGetOneValue() public method

public TryGetOneValue ( ulong stream, int number, long &position ) : bool
stream ulong
number int
position long
return bool

ValidateHash() public method

public ValidateHash ( byte fromFile, byte computed ) : void
fromFile byte
computed byte
return void

WaitForDisposal() public method

public WaitForDisposal ( System.TimeSpan timeout ) : void
timeout System.TimeSpan
return void

WaitForDisposal() public method

public WaitForDisposal ( int timeout ) : void
timeout int
return void