Package com.oltpbenchmark.benchmarks.jpab.objects

Examples of com.oltpbenchmark.benchmarks.jpab.objects.Node


    protected TestEntity newEntity() {
        int treeId = lastTreeId.incrementAndGet();
        Node[] nodes = new Node[GRAPH_SIZE + 1];
        for (int nodeIx = 1; nodeIx <= GRAPH_SIZE; nodeIx++)
        {
            Node node = new Node(treeId * GRAPH_SIZE + nodeIx);
            nodes[nodeIx] = node;
            int parentIx = nodeIx >> 1;
            if (parentIx > 0) {
                if ((nodeIx % 2) == 0) {
                    nodes[parentIx].setChild1(node);
View Full Code Here

TOP

Related Classes of com.oltpbenchmark.benchmarks.jpab.objects.Node

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.