Exemple #1
0
 public FileKeyIndex(long generation, Guid? guid, uint trLogFileId, uint trLogOffset, long keyCount, ulong commitUlong, KeyIndexCompression compression)
 {
     _guid = guid;
     _generation = generation;
     _trLogFileId = trLogFileId;
     _trLogOffset = trLogOffset;
     _keyValueCount = keyCount;
     _commitUlong = commitUlong;
     _compressionType = compression;
 }
Exemple #2
0
 public FileKeyIndex(long generation, Guid?guid, uint trLogFileId, uint trLogOffset, long keyCount, ulong commitUlong, KeyIndexCompression compression)
 {
     _guid            = guid;
     _generation      = generation;
     _trLogFileId     = trLogFileId;
     _trLogOffset     = trLogOffset;
     _keyValueCount   = keyCount;
     _commitUlong     = commitUlong;
     _compressionType = compression;
 }
Exemple #3
0
 public FileKeyIndex(AbstractBufferedReader reader, Guid? guid, bool withCommitUlong, bool modern)
 {
     _guid = guid;
     _generation = reader.ReadVInt64();
     _trLogFileId = reader.ReadVUInt32();
     _trLogOffset = reader.ReadVUInt32();
     _keyValueCount = (long)reader.ReadVUInt64();
     _commitUlong = withCommitUlong ? reader.ReadVUInt64() : 0;
     _compressionType = modern ? (KeyIndexCompression)reader.ReadUInt8() : KeyIndexCompression.Old;
 }
Exemple #4
0
 public FileKeyIndex(AbstractBufferedReader reader, Guid?guid, bool withCommitUlong, bool modern)
 {
     _guid            = guid;
     _generation      = reader.ReadVInt64();
     _trLogFileId     = reader.ReadVUInt32();
     _trLogOffset     = reader.ReadVUInt32();
     _keyValueCount   = (long)reader.ReadVUInt64();
     _commitUlong     = withCommitUlong ? reader.ReadVUInt64() : 0;
     _compressionType = modern ? (KeyIndexCompression)reader.ReadUInt8() : KeyIndexCompression.Old;
 }
Exemple #5
0
 public FileKeyIndex(AbstractBufferedReader reader, Guid?guid, bool withCommitUlong, bool modern, bool withUlongs)
 {
     _guid            = guid;
     _generation      = reader.ReadVInt64();
     _trLogFileId     = reader.ReadVUInt32();
     _trLogOffset     = reader.ReadVUInt32();
     _keyValueCount   = (long)reader.ReadVUInt64();
     _commitUlong     = withCommitUlong ? reader.ReadVUInt64() : 0;
     _compressionType = modern ? (KeyIndexCompression)reader.ReadUInt8() : KeyIndexCompression.Old;
     _ulongs          = null;
     if (withUlongs)
     {
         _ulongs = new ulong[reader.ReadVUInt32()];
         for (var i = 0; i < _ulongs.Length; i++)
         {
             _ulongs[i] = reader.ReadVUInt64();
         }
     }
 }