C# Class EventStore.Core.Index.PTable

Inheritance: ISearchTable, IDisposable
Afficher le fichier Open project: EventStore/EventStore Class Usage Examples

Méthodes publiques

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

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

public Dispose ( ) : void
Résultat void

GetRange() public méthode

public GetRange ( ulong stream, int startNumber, int endNumber, int limit = null ) : IEnumerable
stream ulong
startNumber int
endNumber int
limit int
Résultat IEnumerable

IterateAllInOrder() public méthode

public IterateAllInOrder ( ) : IEnumerable
Résultat IEnumerable

MarkForDestruction() public méthode

public MarkForDestruction ( ) : void
Résultat void

TryGetLatestEntry() public méthode

public TryGetLatestEntry ( ulong stream, IndexEntry &entry ) : bool
stream ulong
entry IndexEntry
Résultat bool

TryGetOldestEntry() public méthode

public TryGetOldestEntry ( ulong stream, IndexEntry &entry ) : bool
stream ulong
entry IndexEntry
Résultat bool

TryGetOneValue() public méthode

public TryGetOneValue ( ulong stream, int number, long &position ) : bool
stream ulong
number int
position long
Résultat bool

ValidateHash() public méthode

public ValidateHash ( byte fromFile, byte computed ) : void
fromFile byte
computed byte
Résultat void

WaitForDisposal() public méthode

public WaitForDisposal ( System.TimeSpan timeout ) : void
timeout System.TimeSpan
Résultat void

WaitForDisposal() public méthode

public WaitForDisposal ( int timeout ) : void
timeout int
Résultat void