private HashToUidCache hashToUidCache; // Needs to be protected by a lock

            internal UrlCell(Cell cell, BinaryReader rd)
            {
                this.numBytes       = rd.ReadInt64();
                this.indexStride    = rd.ReadInt32();
                this.cell           = cell;
                this.startPos       = -1;
                this.idxUrls        = null;
                this.idxOffsets     = null;
                this.bytes          = null;
                this.hashToUidCache = null;
                this.hasher         = new Hash64();
            }
 internal void SetUrlToUidCacheParams(int logCacheSize, int logSpineSize)
 {
     this.hashToUidCache = new HashToUidCache(logCacheSize, logSpineSize);
 }
Example #3
0
File: Cell.cs Project: pszmyd/SHS
 internal void SetUrlToUidCacheParams(int logCacheSize, int logSpineSize)
 {
     this.hashToUidCache = new HashToUidCache(logCacheSize, logSpineSize);
 }
Example #4
0
File: Cell.cs Project: pszmyd/SHS
            private byte[][] idxUrls; // each byte[] is logically a UTF8-encoded string

            #endregion Fields

            #region Constructors

            internal UrlCell(Cell cell, BinaryReader rd)
            {
                this.numBytes = rd.ReadInt64();
                this.indexStride = rd.ReadInt32();
                this.cell = cell;
                this.startPos = -1;
                this.idxUrls = null;
                this.idxOffsets = null;
                this.bytes = null;
                this.hashToUidCache = null;
                this.hasher = new Hash64();
            }