C# Class EventStore.Core.Index.IndexMap

Afficher le fichier Open project: EventStore/EventStore Class Usage Examples

Méthodes publiques

Свойство Type Description
CommitCheckpoint long
PrepareCheckpoint long
Version int

Méthodes publiques

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

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

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
Résultat EventStore.Core.Index.MergeResult

CreateEmpty() public static méthode

public static CreateEmpty ( int maxTablesPerLevel = 4 ) : IndexMap
maxTablesPerLevel int
Résultat IndexMap

Dispose() public méthode

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

FromFile() public static méthode

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

GetAllFilenames() public méthode

public GetAllFilenames ( ) : IEnumerable
Résultat IEnumerable

InOrder() public méthode

public InOrder ( ) : IEnumerable
Résultat IEnumerable

InReverseOrder() public méthode

public InReverseOrder ( ) : IEnumerable
Résultat IEnumerable

SaveToFile() public méthode

public SaveToFile ( string filename ) : void
filename string
Résultat void

Property Details

CommitCheckpoint public_oe property

public long CommitCheckpoint
Résultat long

PrepareCheckpoint public_oe property

public long PrepareCheckpoint
Résultat long

Version public_oe property

public int Version
Résultat int