Esempio n. 1
0
 public void Dispose()
 {
     iter1?.Dispose();
     iter2?.Dispose();
     tempKvSession?.Dispose();
     tempKv?.Dispose();
 }
Esempio n. 2
0
 public void OnNext(IFasterScanIterator <Key, Value> v)
 {
     while (v.GetNext(out RecordInfo info, out Key key, out Value value))
     {
         observer.OnNext(new Record <Key, Value> {
             info = info, key = key, value = value
         });
     }
     v.Dispose();
 }
Esempio n. 3
0
 public void OnNext(IFasterScanIterator <MyKey, MyValue> iter)
 {
     while (iter.GetNext(out _, out MyKey key, out MyValue value))
     {
         Assert.IsTrue(key.key == val);
         Assert.IsTrue(value.value == val);
         val++;
     }
     iter.Dispose();
 }
 public void OnNext(IFasterScanIterator <KeyStruct, ValueStruct> iter)
 {
     while (iter.GetNext(out _, out KeyStruct key, out ValueStruct value))
     {
         Assert.IsTrue(key.kfield1 == val);
         Assert.IsTrue(key.kfield2 == val + 1);
         Assert.IsTrue(value.vfield1 == val);
         Assert.IsTrue(value.vfield2 == val + 1);
         val++;
     }
     iter.Dispose();
 }