C# Class EventStore.Core.Index.IndexMap

Exibir arquivo Open project: EventStore/EventStore Class Usage Examples

Public Properties

Property Type Description
CommitCheckpoint long
PrepareCheckpoint long
Version int

Public Methods

Method Description
AddPTable ( PTable tableToAdd, long prepareCheckpoint, long commitCheckpoint, Func upgradeHash, bool>.Func existsAt, bool>.Func recordExistsAt, IIndexFilenameProvider filenameProvider, byte version, int indexCacheDepth = 16 ) : EventStore.Core.Index.MergeResult
CreateEmpty ( int maxTablesPerLevel = 4 ) : IndexMap
Dispose ( System.TimeSpan timeout ) : void
FromFile ( string filename, int maxTablesPerLevel = 4, bool loadPTables = true, int cacheDepth = 16 ) : IndexMap
GetAllFilenames ( ) : IEnumerable
InOrder ( ) : IEnumerable
InReverseOrder ( ) : IEnumerable
SaveToFile ( string filename ) : void

Private Methods

Method Description
CopyFrom ( List tables ) : List>
CreateIfNeeded ( int level, List tables ) : void
IndexMap ( int version, List tables, long prepareCheckpoint, long commitCheckpoint, int maxTablesPerLevel ) : System
LoadPTables ( StreamReader reader, string indexmapFilename, TFPos checkpoints, int cacheDepth ) : List>
ReadAndCheckHash ( TextReader reader, byte realHash ) : void
ReadCheckpoints ( TextReader reader ) : TFPos
ReadVersion ( TextReader reader ) : int
VerifyStructure ( ) : void

Method Details

AddPTable() public method

public AddPTable ( PTable tableToAdd, long prepareCheckpoint, long commitCheckpoint, Func upgradeHash, bool>.Func existsAt, bool>.Func recordExistsAt, IIndexFilenameProvider filenameProvider, byte version, int indexCacheDepth = 16 ) : EventStore.Core.Index.MergeResult
tableToAdd PTable
prepareCheckpoint long
commitCheckpoint long
upgradeHash Func
existsAt bool>.Func
recordExistsAt bool>.Func
filenameProvider IIndexFilenameProvider
version byte
indexCacheDepth int
return EventStore.Core.Index.MergeResult

CreateEmpty() public static method

public static CreateEmpty ( int maxTablesPerLevel = 4 ) : IndexMap
maxTablesPerLevel int
return IndexMap

Dispose() public method

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

FromFile() public static method

public static FromFile ( string filename, int maxTablesPerLevel = 4, bool loadPTables = true, int cacheDepth = 16 ) : IndexMap
filename string
maxTablesPerLevel int
loadPTables bool
cacheDepth int
return IndexMap

GetAllFilenames() public method

public GetAllFilenames ( ) : IEnumerable
return IEnumerable

InOrder() public method

public InOrder ( ) : IEnumerable
return IEnumerable

InReverseOrder() public method

public InReverseOrder ( ) : IEnumerable
return IEnumerable

SaveToFile() public method

public SaveToFile ( string filename ) : void
filename string
return void

Property Details

CommitCheckpoint public_oe property

public long CommitCheckpoint
return long

PrepareCheckpoint public_oe property

public long PrepareCheckpoint
return long

Version public_oe property

public int Version
return int