C# Class EventStore.Core.TransactionLog.Chunks.TFChunk.TFChunk.TFChunkReadSideScavenged

Inheritance: TFChunkReadSide, IChunkReadSide
Mostra file Open project: EventStore/EventStore

Public Methods

Method Description
Cache ( ) : void
ExistsAt ( long logicalPosition ) : bool
TFChunkReadSideScavenged ( EventStore.Core.TransactionLog.Chunks.TFChunk.TFChunk chunk ) : System
TryReadAt ( long logicalPosition ) : RecordReadResult
TryReadClosestBackward ( long logicalPosition ) : RecordReadResult
TryReadClosestForward ( long logicalPosition ) : RecordReadResult
TryReadFirst ( ) : RecordReadResult
TryReadLast ( ) : RecordReadResult
Uncache ( ) : void

Private Methods

Method Description
LocatePosRange ( Midpoint midpoints, long pos ) : Range
LowerMidpointBound ( Midpoint midpoints, long pos ) : int

Returns the index of lower midpoint for given logical position. Assumes it always exist.

PopulateMidpoints ( int depth ) : Midpoint[]
ReadPosMap ( EventStore.Core.TransactionLog.Chunks.TFChunk.ReaderWorkItem workItem, long index ) : EventStore.Core.TransactionLog.Chunks.TFChunk.PosMap
TranslateClosestForwardPosition ( EventStore.Core.TransactionLog.Chunks.TFChunk.ReaderWorkItem workItem, long logicalPosition ) : int
TranslateClosestForwardWithMidpoints ( EventStore.Core.TransactionLog.Chunks.TFChunk.ReaderWorkItem workItem, Midpoint midpoints, long pos ) : int
TranslateClosestForwardWithoutMidpoints ( EventStore.Core.TransactionLog.Chunks.TFChunk.ReaderWorkItem workItem, long pos, long startIndex, long endIndex ) : int
TranslateExactPosition ( EventStore.Core.TransactionLog.Chunks.TFChunk.ReaderWorkItem workItem, long pos ) : int
TranslateExactWithMidpoints ( EventStore.Core.TransactionLog.Chunks.TFChunk.ReaderWorkItem workItem, Midpoint midpoints, long pos ) : int
TranslateExactWithoutMidpoints ( EventStore.Core.TransactionLog.Chunks.TFChunk.ReaderWorkItem workItem, long pos, long startIndex, long endIndex ) : int
UpperMidpointBound ( Midpoint midpoints, long pos ) : int

Returns the index of upper midpoint for given logical position. Assumes it always exist.

Method Details

Cache() public method

public Cache ( ) : void
return void

ExistsAt() public method

public ExistsAt ( long logicalPosition ) : bool
logicalPosition long
return bool

TFChunkReadSideScavenged() public method

public TFChunkReadSideScavenged ( EventStore.Core.TransactionLog.Chunks.TFChunk.TFChunk chunk ) : System
chunk EventStore.Core.TransactionLog.Chunks.TFChunk.TFChunk
return System

TryReadAt() public method

public TryReadAt ( long logicalPosition ) : RecordReadResult
logicalPosition long
return RecordReadResult

TryReadClosestBackward() public method

public TryReadClosestBackward ( long logicalPosition ) : RecordReadResult
logicalPosition long
return RecordReadResult

TryReadClosestForward() public method

public TryReadClosestForward ( long logicalPosition ) : RecordReadResult
logicalPosition long
return RecordReadResult

TryReadFirst() public method

public TryReadFirst ( ) : RecordReadResult
return RecordReadResult

TryReadLast() public method

public TryReadLast ( ) : RecordReadResult
return RecordReadResult

Uncache() public method

public Uncache ( ) : void
return void