Search in sources :

Example 1 with NodeAVLMemoryPointer

use of org.hsqldb_voltpatches.index.NodeAVLMemoryPointer in project voltdb by VoltDB.

the class RowAVLDiskData method insertNode.

public NodeAVL insertNode(int index) {
    NodeAVL backnode = getNode(index - 1);
    NodeAVL newnode = new NodeAVLMemoryPointer(this);
    newnode.nNext = backnode.nNext;
    backnode.nNext = newnode;
    return newnode;
}
Also used : NodeAVL(org.hsqldb_voltpatches.index.NodeAVL) NodeAVLMemoryPointer(org.hsqldb_voltpatches.index.NodeAVLMemoryPointer)

Example 2 with NodeAVLMemoryPointer

use of org.hsqldb_voltpatches.index.NodeAVLMemoryPointer in project voltdb by VoltDB.

the class RowAVLDiskData method setNewNodes.

/**
     *  Used when data is read from the disk into the Cache the first time.
     *  New Nodes are created which are then indexed.
     */
void setNewNodes() {
    int index = tTable.getIndexCount();
    nPrimaryNode = new NodeAVLMemoryPointer(this);
    NodeAVL n = nPrimaryNode;
    for (int i = 1; i < index; i++) {
        n.nNext = new NodeAVLMemoryPointer(this);
        n = n.nNext;
    }
}
Also used : NodeAVL(org.hsqldb_voltpatches.index.NodeAVL) NodeAVLMemoryPointer(org.hsqldb_voltpatches.index.NodeAVLMemoryPointer)

Aggregations

NodeAVL (org.hsqldb_voltpatches.index.NodeAVL)2 NodeAVLMemoryPointer (org.hsqldb_voltpatches.index.NodeAVLMemoryPointer)2