Ejemplo n.º 1
0
 public ThriftySetMemberTest(int logSpineLen)
 {
     int spineLen = 1 << logSpineLen;
       this.hashes = new UInt40[spineLen][];
       for (int i = 0; i < spineLen; i++) {
     this.hashes[i] = null;
       }
       this.count = 0;
       this.hasher = new Hash64();
 }
            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();
            }
Ejemplo n.º 3
0
        public ThriftySetMemberTest(int logSpineLen)
        {
            int spineLen = 1 << logSpineLen;

            this.hashes = new UInt40[spineLen][];
            for (int i = 0; i < spineLen; i++)
            {
                this.hashes[i] = null;
            }
            this.count  = 0;
            this.hasher = new Hash64();
        }
Ejemplo n.º 4
0
Archivo: Cell.cs Proyecto: 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();
            }