Documentation of 'org.hsqldb.index.Index' Java class
Index
org.hsqldb.index

Interface Index

    • Method Detail

      • getPosition

        int getPosition()
      • setPosition

        void setPosition(int position)
      • getPersistenceId

        long getPersistenceId()
      • getColumnCount

        int getColumnCount()
        Returns the count of visible columns used
      • isUnique

        boolean isUnique()
        Is this a UNIQUE index?
      • isConstraint

        boolean isConstraint()
        Does this index belong to a constraint?
      • getColumns

        int[] getColumns()
        Returns the array containing column indexes for index
      • getColumnTypes

        Type[] getColumnTypes()
        Returns the array containing column indexes for index
      • getColumnDesc

        boolean[] getColumnDesc()
        Returns the count of visible columns used
      • getDefaultColumnMap

        int[] getDefaultColumnMap()
        Returns the array containing 0, 1, .. column indexes
      • getIndexOrderValue

        int getIndexOrderValue()
        Returns a value indicating the order of different types of index in the list of indexes for a table. The position of the groups of Indexes in the list in ascending order is as follows: primary key index unique constraint indexes autogenerated foreign key indexes for FK's that reference this table or tables created before this table user created indexes (CREATE INDEX) autogenerated foreign key indexes for FK's that reference tables created after this table Among a group of indexes, the order is based on the order of creation of the index.
        Returns:
        ordinal value
      • isForward

        boolean isForward()
      • setClustered

        void setClustered(boolean clustered)
      • isClustered

        boolean isClustered()
      • existsParent

        boolean existsParent(Session session,
                             PersistentStore store,
                             java.lang.Object[] rowdata,
                             int[] rowColMap)
      • findFirstRow

        RowIterator findFirstRow(Session session,
                                 PersistentStore store,
                                 java.lang.Object[] rowdata,
                                 int matchCount,
                                 int distinctCount,
                                 int compareType,
                                 boolean reversed,
                                 boolean[] map)
        Return the first node equal to the indexdata object. The rowdata has the same column mapping as this index.
        Parameters:
        session - session object
        store - store object
        coldata - array containing index column data
        match - count of columns to match
        Returns:
        iterator
      • findFirstRow

        RowIterator findFirstRow(Session session,
                                 PersistentStore store,
                                 java.lang.Object[] rowdata)
        Return the first node equal to the rowdata object. The rowdata has the same column mapping as this table.
        Parameters:
        session - session object
        store - store object
        rowdata - array containing table row data
        Returns:
        iterator
      • findFirstRow

        RowIterator findFirstRow(Session session,
                                 PersistentStore store,
                                 java.lang.Object[] rowdata,
                                 int[] rowColMap)
        Return the first node equal to the rowdata object. The rowdata has the column mapping privided in rowColMap.
        Parameters:
        session - session object
        store - store object
        rowdata - array containing table row data
        Returns:
        iterator
      • firstRow

        RowIterator firstRow(Session session,
                             PersistentStore store,
                             int distinctCount)
        Returns the row for the first node of the index
        Returns:
        Iterator for first row
      • compareRowNonUnique

        int compareRowNonUnique(Session session,
                                java.lang.Object[] a,
                                java.lang.Object[] b,
                                int[] rowColMap)
        Compares two table rows based on the columns of this index. The rowColMap parameter specifies which columns of the other table are to be compared with the colIndex columns of this index. The rowColMap can cover all or only some columns of this index.
        Parameters:
        a - row from another table
        rowColMap - column indexes in the other table
        b - a full row in this table
        Returns:
        comparison result, -1,0,+1
      • compareRowNonUnique

        int compareRowNonUnique(Session session,
                                java.lang.Object[] a,
                                java.lang.Object[] b,
                                int[] rowColMap,
                                int fieldCount)
      • compareRowNonUnique

        int compareRowNonUnique(Session session,
                                java.lang.Object[] a,
                                java.lang.Object[] b,
                                int fieldcount)
        As above but use the index column data
      • compareRow

        int compareRow(Session session,
                       java.lang.Object[] a,
                       java.lang.Object[] b)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.