Top Description Fields Constructors Methods
org.hsqldb.index

public Class IndexAVLMemory

extends IndexAVL
Class Inheritance
Imports
org.hsqldb.HsqlNameManager.HsqlName, .TableBase, org.hsqldb.persist.PersistentStore, org.hsqldb.types.Type

Implementation of an AVL for memory tables.

New class derived from Hypersonic SQL code and enhanced in HSQLDB.

Authors
Thomas Mueller (Hypersonic SQL Group), Fred Toussi (fredt@users dot sourceforge.net)
Since
Hypersonic SQL
Version
2.5.0

Field Summary

Inherited from org.hsqldb.index.IndexAVL:
colIndexcolTypesisConstraintisPKisSimpleisSimpleOrderisUniquenamenullDatapositiontable

Constructor Summary

AccessConstructor and Description
public
IndexAVLMemory(HsqlNameManager.HsqlName
HsqlName of the index
name
,
long
persistnece id
id
,
TableBase
table of the index
table
,
int[]
array of column indexes
columns
,
boolean[]
boolean[] for result sets
descending
,
boolean[]
boolean[] for result sets
nullsLast
,
Type[]
array of column types
colTypes
,
boolean
is index for a primary key
pk
,
boolean
is this a unique index
unique
,
boolean
does this index belong to a constraint
constraint
,
boolean
is this an auto-index for an FK that refers to a table defined after this table
forward
)

Constructor declaration

Method Summary

Modifier and TypeMethod and Description
pack-priv void
balance(PersistentStore store, NodeAVL x, boolean isleft)

Overrides org.hsqldb.index.IndexAVL.balance.

Balances part of the tree after an alteration to the index.

pack-priv void
pack-priv NodeAVL
pack-priv NodeAVL
Inherited from org.hsqldb.index.IndexAVL:
asArraycompareObjectcompareRowcompareRowForChangecompareRowForInsertOrDeletecompareRowNonUniquecompareRowNonUniquecompareRowNonUniquedeleteexistsParentfindDistinctNodefindFirstRowfindFirstRowfindFirstRowfindFirstRowNotNullfindNodefirstRowfirstRowgetAccessorgetCatalogNamegetChangeTimestampgetColumnCountgetColumnDescgetColumnsgetColumnTypesgetDefaultColumnMapgetIndexOrderValuegetIteratorgetNamegetOwnergetPersistenceIdgetPositiongetSchemaNamegetSQLgetTablegetTypehasNullsinsertisClusteredisConstraintisEmptyisEqualReadableisForwardisPrimaryKeyisUniquelastlastRownextnextprobeFactorsearchCostsetClusteredsetPositionsetTablesizesizeUniqueunlinkNodes

Constructor Detail

IndexAVLMemoryback to summary
public IndexAVLMemory(HsqlNameManager.HsqlName name, long id, TableBase table, int[] columns, boolean[] descending, boolean[] nullsLast, Type[] colTypes, boolean pk, boolean unique, boolean constraint, boolean forward)

Constructor declaration

Parameters
name:HsqlNameManager.HsqlName

HsqlName of the index

id:long

persistnece id

table:TableBase

table of the index

columns:int[]

array of column indexes

descending:boolean[]

boolean[] for result sets

nullsLast:boolean[]

boolean[] for result sets

colTypes:Type[]

array of column types

pk:boolean

is index for a primary key

unique:boolean

is this a unique index

constraint:boolean

does this index belong to a constraint

forward:boolean

is this an auto-index for an FK that refers to a table defined after this table

Method Detail

balanceback to summary
pack-priv void balance(PersistentStore store, NodeAVL x, boolean isleft)

Overrides org.hsqldb.index.IndexAVL.balance.

Balances part of the tree after an alteration to the index.

deleteback to summary
pack-priv void delete(PersistentStore store, NodeAVL x)
lastback to summary
pack-priv NodeAVL last(PersistentStore store, NodeAVL x)

Overrides org.hsqldb.index.IndexAVL.last.

nextback to summary
pack-priv NodeAVL next(PersistentStore store, NodeAVL x)

Overrides org.hsqldb.index.IndexAVL.next.