text: public BytesRefHash(ByteBlockPool pool, int capacity, BytesStartArray bytesStartArray){hashSize = capacity;hashHalfSize = hashSize >> 1;hashMask = hashSize - 1;this.pool = pool;ids = new int[hashSize];Arrays.Fill(ids, -1);this.bytesStartArray = bytesStartArray;bytesStart = bytesStartArray.Init();bytesUsed = bytesStartArray.BytesUsed() == null ? Counter.NewCounter() : bytesStartArray.BytesUsed();bytesUsed.AddAndGet(hashSize * RamUsageEstimator.NUM_BYTES_INT32);}