Package org.hsqldb_voltpatches.index

Examples of org.hsqldb_voltpatches.index.NodeAVL


     */
    public void setPos(int pos) {

        position = pos;

        NodeAVL n = nPrimaryNode;

        while (n != null) {
            ((NodeAVLMemoryPointer) n).iData = position;
            n                                = n.nNext;
        }
View Full Code Here


        int index = t.getIndexCount();

        nPrimaryNode = new NodeAVLMemory(this);

        NodeAVL n = nPrimaryNode;

        for (int i = 1; i < index; i++) {
            n.nNext = new NodeAVLMemory(this);
            n       = n.nNext;
        }
View Full Code Here

     * Returns the Node for a given Index, using the ordinal position of the
     * Index within the Table Object.
     */
    public NodeAVL getNode(int index) {

        NodeAVL n = nPrimaryNode;

        while (index-- > 0) {
            n = n.nNext;
        }

View Full Code Here

        return n;
    }

    public NodeAVL insertNode(int index) {

        NodeAVL backnode = getNode(index - 1);
        NodeAVL newnode  = new NodeAVLMemory(this);

        newnode.nNext  = backnode.nNext;
        backnode.nNext = newnode;

        return newnode;
View Full Code Here

        return newnode;
    }

    public void clearNonPrimaryNodes() {

        NodeAVL n = nPrimaryNode.nNext;

        while (n != null) {
            n.delete();

            n.iBalance = 0;
            n          = n.nNext;
        }
    }
View Full Code Here

        }
    }

    public void restore() {

        NodeAVL n = nPrimaryNode;

        while (n != null) {
            n.iBalance = 0;
            n          = n.nNext;
        }
View Full Code Here

        accessorList[index.getPosition()] = accessor;
    }

    public CachedObject getAccessor(Index key) {

        NodeAVL node = (NodeAVL) accessorList[key.getPosition()];

        if (node == null) {
            return null;
        }

        if (!node.isInMemory()) {
            RowAVL row = (RowAVL) get(node.getPos(), false);

            node                            = row.getNode(key.getPosition());
            accessorList[key.getPosition()] = node;
        }
View Full Code Here

    public void setAccessor(Index key, int accessor) {

        CachedObject object = get(accessor, false);

        if (object != null) {
            NodeAVL node = ((RowAVL) object).getNode(key.getPosition());

            object = node;
        }

        setAccessor(key, object);
View Full Code Here

TOP

Related Classes of org.hsqldb_voltpatches.index.NodeAVL

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.