Package org.hsqldb.index

Examples of org.hsqldb.index.IndexAVL$IndexRowIterator


            case TableBase.TEMP_TABLE :
            case TableBase.RESULT_TABLE :
            case TableBase.SYSTEM_SUBQUERY :
            case TableBase.VIEW_TABLE :
            case TableBase.TRANSITION_TABLE :
                return new IndexAVL(name, id, table, columns, descending,
                                    nullsLast, colTypes, pk, unique,
                                    constraint, forward);
        }

        throw Error.runtimeError(ErrorCode.U_S0500, "Logger");
View Full Code Here


            case TableBase.TEMP_TABLE :
            case TableBase.RESULT_TABLE :
            case TableBase.SYSTEM_SUBQUERY :
            case TableBase.VIEW_TABLE :
            case TableBase.TRANSITION_TABLE :
                return new IndexAVL(name, id, table, columns, descending,
                                    nullsLast, colTypes, pk, unique,
                                    constraint, forward);
        }

        throw Error.runtimeError(ErrorCode.U_S0500, "Logger");
View Full Code Here

        if (cache != null) {
            tableSpace = cache.spaceManager.getTableSpace(
                DataSpaceManager.tableIdDefault);

            IndexAVL    idx      = (IndexAVL) indexList[0];
            NodeAVL     root     = (NodeAVL) accessorList[0];
            RowIterator iterator = table.rowIterator(this);

            ArrayUtil.fillArray(accessorList, null);
            elementCount.set(0);

            isCached = true;

            cache.adjustStoreCount(1);

            while (iterator.hasNext()) {
                Row row = iterator.getNextRow();
                Row newRow = (Row) getNewCachedObject(session, row.getData(),
                                                      false);

                indexRow(session, newRow);
            }

            idx.unlinkNodes(root);
        }

        maxMemoryRowCount = Integer.MAX_VALUE;
    }
View Full Code Here

        if (indexList.length == 0) {
            return;
        }

        IndexAVL idx  = (IndexAVL) indexList[0];
        NodeAVL  root = (NodeAVL) accessorList[0];

        idx.unlinkNodes(root);
    }
View Full Code Here

            case TableBase.TEMP_TABLE :
            case TableBase.RESULT_TABLE :
            case TableBase.SYSTEM_SUBQUERY :
            case TableBase.VIEW_TABLE :
            case TableBase.TRANSITION_TABLE :
                return new IndexAVL(name, id, table, columns, descending,
                                    nullsLast, colTypes, pk, unique,
                                    constraint, forward);
        }

        throw Error.runtimeError(ErrorCode.U_S0500, "Logger");
View Full Code Here

                                          colTypes, false, false, false,
                                          false);

            case TableBase.CACHED_TABLE :
            case TableBase.TEXT_TABLE :
                return new IndexAVL(index.getName(), index.getPersistenceId(),
                                    table, columns, modeFlags, modeFlags,
                                    colTypes, false, false, false, false);
        }

        throw Error.runtimeError(ErrorCode.U_S0500, "Logger");
View Full Code Here

            case TableBase.TEMP_TABLE :
            case TableBase.RESULT_TABLE :
            case TableBase.SYSTEM_SUBQUERY :
            case TableBase.VIEW_TABLE :
            case TableBase.TRANSITION_TABLE :
                return new IndexAVL(name, id, table, columns, descending,
                                    nullsLast, colTypes, pk, unique,
                                    constraint, forward);
        }

        throw Error.runtimeError(ErrorCode.U_S0500, "Logger");
View Full Code Here

                                          colTypes, false, false, false,
                                          false);

            case TableBase.CACHED_TABLE :
            case TableBase.TEXT_TABLE :
                return new IndexAVL(index.getName(), index.getPersistenceId(),
                                    table, columns, modeFlags, modeFlags,
                                    colTypes, false, false, false, false);
        }

        throw Error.runtimeError(ErrorCode.U_S0500, "Logger");
View Full Code Here

    public final void createPrimaryIndex(int[] pkcols, Type[] pktypes,
                                         HsqlName name) {

        long id = database.persistentStoreCollection.getNextId();
        Index newindex = new IndexAVL(name, id, this, pkcols, null, null,
                                      pktypes, true, true, true, false);

        try {
            addIndex(newindex);
        } catch (HsqlException e) {}
View Full Code Here

            cols[j= columns[j];
            types[j] = colTypes[cols[j]];
        }

        long id = database.persistentStoreCollection.getNextId();
        Index newIndex = new IndexAVL(name, id, this, cols, descending,
                                      nullsLast, types, false, unique,
                                      constraint, forward);

        return newIndex;
    }
View Full Code Here

TOP

Related Classes of org.hsqldb.index.IndexAVL$IndexRowIterator

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.