public virtual void Test1() { int size = 100000; NeoDatis.Btree.IBTree tree = new NeoDatis.Btree.Impl.Multiplevalue.InMemoryBTreeMultipleValuesPerKey ("test1", 50); for (int i = 0; i < size; i++) { if (i % 10000 == 0) { Println(i); } tree.Insert(i + 1, "value " + (i + 1)); } AssertEquals(size, tree.GetSize()); System.Collections.IEnumerator iterator = new NeoDatis.Btree.BTreeIteratorMultipleValuesPerKey (tree, NeoDatis.Odb.Core.OrderByConstants.OrderByAsc); int j = 0; while (iterator.MoveNext()) { object o = iterator.Current; // println(o); j++; if (j == size) { AssertEquals("value " + size, o); } } }
public virtual void Test1() { int size = 100000; NeoDatis.Btree.IBTree tree = new NeoDatis.Btree.Impl.Multiplevalue.InMemoryBTreeMultipleValuesPerKey ("test1", 50); for (int i = 0; i < size; i++) { if (i % 10000 == 0) { Println(i); } tree.Insert(i + 1, "value " + (i + 1)); } AssertEquals(size, tree.GetSize()); System.Collections.IEnumerator iterator = new NeoDatis.Btree.BTreeIteratorMultipleValuesPerKey (tree, NeoDatis.Odb.Core.OrderByConstants.OrderByAsc); int j = 0; while (iterator.MoveNext()) { object o = iterator.Current; // println(o); j++; if (j == size) { AssertEquals("value " + size, o); } } }