示例#1
0
        public override bool AddAll(PrimitiveLongIterator values)
        {
            bool changed = false;

            while (values.HasNext())
            {
                changed |= HopScotchHashingAlgorithm.Put(Table, _monitor, DEFAULT_HASHING, values.Next(), _valueMarker, this) == null;
            }
            return(changed);
        }
示例#2
0
 public override long Put(long key, long value)
 {
     return(Unpack(HopScotchHashingAlgorithm.Put(Table, _monitor, DEFAULT_HASHING, key, Pack(value), this)));
 }
示例#3
0
 public override bool Add(long value)
 {
     return(HopScotchHashingAlgorithm.Put(Table, _monitor, DEFAULT_HASHING, value, _valueMarker, this) == null);
 }
示例#4
0
 public override VALUE Put(int key, VALUE value)
 {
     return(HopScotchHashingAlgorithm.Put(Table, _monitor, DEFAULT_HASHING, key, value, this));
 }