use of org.hsqldb_voltpatches.index.NodeAVL in project voltdb by VoltDB.
the class RowAVL method restore.
public void restore() {
NodeAVL n = nPrimaryNode;
while (n != null) {
n.iBalance = 0;
n = n.nNext;
}
}
use of org.hsqldb_voltpatches.index.NodeAVL in project voltdb by VoltDB.
the class RowAVL method insertNode.
public NodeAVL insertNode(int index) {
NodeAVL backnode = getNode(index - 1);
NodeAVL newnode = new NodeAVLMemory(this);
newnode.nNext = backnode.nNext;
backnode.nNext = newnode;
return newnode;
}
use of org.hsqldb_voltpatches.index.NodeAVL in project voltdb by VoltDB.
the class RowAVLDisk method write.
public void write(RowOutputInterface out, IntLookup lookup) {
out.writeSize(storageSize);
NodeAVL rownode = nPrimaryNode;
while (rownode != null) {
((NodeAVLDisk) rownode).writeTranslate(out, lookup);
rownode = rownode.nNext;
}
out.writeData(getData(), tTable.colTypes);
out.writeEnd();
}
use of org.hsqldb_voltpatches.index.NodeAVL in project voltdb by VoltDB.
the class RowAVLDisk method setNewNodes.
/**
* used in CachedDataRow
*/
void setNewNodes() {
int indexcount = tTable.getIndexCount();
nPrimaryNode = new NodeAVLDisk(this, 0);
NodeAVL n = nPrimaryNode;
for (int i = 1; i < indexcount; i++) {
n.nNext = new NodeAVLDisk(this, i);
n = n.nNext;
}
}
use of org.hsqldb_voltpatches.index.NodeAVL in project voltdb by VoltDB.
the class RowAVLDisk method setPos.
/**
* Sets the file position for the row
*
* @param pos position in data file
*/
public void setPos(int pos) {
position = pos;
NodeAVL n = nPrimaryNode;
while (n != null) {
((NodeAVLDisk) n).iData = position;
n = n.nNext;
}
}
Aggregations