public Hash(string indexfilename, byte maxkeysize, short bucketItems = 200, int bucketcount = 10007) { _bucketCount = bucketcount; _cachedBuckets = new SortedList<int, Bucket>(_bucketCount); _bucketItems = bucketItems; _hash = new MurmurHash2Unsafe(); _bucketPointers = new List<int>(); for (int i = 0; i < _bucketCount; i++) { _bucketPointers.Add(-1); } _indexfile = new IndexFile(indexfilename, maxkeysize, bucketItems, bucketcount); _bucketItems = _indexfile._PageNodeCount; _bucketPointers = _indexfile.GetBucketList(); }
public Hash(string indexfilename, byte maxkeysize, short bucketItems = 200, int bucketcount = 10007) { _bucketCount = bucketcount; _cachedBuckets = new SortedList <int, Bucket>(_bucketCount); _bucketItems = bucketItems; _hash = new MurmurHash2Unsafe(); _bucketPointers = new List <int>(); for (int i = 0; i < _bucketCount; i++) { _bucketPointers.Add(-1); } _indexfile = new IndexFile(indexfilename, maxkeysize, bucketItems, bucketcount); _bucketItems = _indexfile._PageNodeCount; _bucketPointers = _indexfile.GetBucketList(); }