Search in sources :

Example 1 with NodeAVLDisk

use of org.hsqldb_voltpatches.index.NodeAVLDisk 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();
}
Also used : NodeAVL(org.hsqldb_voltpatches.index.NodeAVL) NodeAVLDisk(org.hsqldb_voltpatches.index.NodeAVLDisk)

Example 2 with NodeAVLDisk

use of org.hsqldb_voltpatches.index.NodeAVLDisk 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;
    }
}
Also used : NodeAVL(org.hsqldb_voltpatches.index.NodeAVL) NodeAVLDisk(org.hsqldb_voltpatches.index.NodeAVLDisk)

Aggregations

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