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;
}
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;
}
}
Aggregations