Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @BeforeEach void prepareCursor() throws java.io.IOException
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        internal virtual void PrepareCursor()
        {
            Cursor = new PageAwareByteArrayCursor(PAGE_SIZE);
            Cursor.next();
            _layout = Layout;
            _node   = GetNode(PAGE_SIZE, _layout);
        }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private GBPTree<KEY,VALUE> createIndex() throws java.io.IOException
        private GBPTree <KEY, VALUE> CreateIndex()
        {
            // some random padding
            _layout = GetLayout(Random);
            PageCache pageCache = _pageCacheRule.getPageCache(_fs.get(), config().withPageSize(512).withAccessChecks(true));

            return(_index = (new GBPTreeBuilder <KEY, VALUE>(pageCache, _directory.file("index"), _layout)).build());
        }
Example #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUp()
        public virtual void SetUp()
        {
            this._layout            = GetLayout(_random);
            _loadCountTransactions  = _random.intBetween(300, 1_000);
            _minInsertCountPerBatch = 30;
            _maxInsertCountPerBatch = 200;
            _minRemoveCountPerBatch = 5;
            _maxRemoveCountPerBatch = 20;
        }
Example #4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUp()
        public virtual void SetUp()
        {
            _indexFile = _deps.directory().file("index");
            _layout    = Layout;
        }
Example #5
0
 internal override TreeNode <MutableLong, MutableLong> GetTreeNode(int pageSize, TestLayout <MutableLong, MutableLong> layout)
 {
     return(new TreeNodeFixedSize <MutableLong, MutableLong>(pageSize, layout));
 }