Top Description Fields Constructors Methods
org.hsqldb

public Class RowAVL

extends Row
Class Inheritance
Known Direct Subclasses
org.hsqldb.RowAVLDisk, org.hsqldb.RowAVLDiskData
Imports
org.hsqldb.index.NodeAVL, org.hsqldb.persist.PersistentStore

Base class for a database row object implementing rows for memory resident tables.

Subclass RowAVLDisk implements rows for CACHED and TEXT tables.

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

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

Field Summary

Modifier and TypeField and Description
public NodeAVL
Inherited from org.hsqldb.Row:
positionrowActionrowDatatable

Constructor Summary

AccessConstructor and Description
protected
RowAVL(TableBase table, Object[] data)

Default constructor used only in subclasses.

public
RowAVL(TableBase table, Object[] data, long position, PersistentStore store)

Constructor for MEMORY table Row.

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
destroy()

Overrides org.hsqldb.Row.destroy.

Implements org.hsqldb.persist.CachedObject.destroy.

Helps GC, removing secondary node links.

pack-priv NodeAVL
getNextNode(NodeAVL n)

Returns the Node for the next Index on this database row, given the Node for any Index.

public NodeAVL
getNode(int index)

Returns the Node for a given Index, using the ordinal position of the Index within the Table Object.

public NodeAVL
insertNode(int index)

public void
public void
Inherited from org.hsqldb.Row:
equalsgetAccessCountgetActiongetDatagetDataCopygetDefaultCapacitygetFieldgetIdgetPosgetRealSizegetStorageSizegetSystemEndVersiongetSystemStartVersiongetTablehasChangedhashCodeisBlockisCurrentSystemVersionisDeletedisInMemoryisInvariableisKeepInMemoryisMemoryisNewkeepInMemoryreadsetChangedsetInMemorysetPossetStorageSizeupdateAccessCountwritewrite

Field Detail

nPrimaryNodeback to summary
public NodeAVL nPrimaryNode

Constructor Detail

RowAVLback to summary
protected RowAVL(TableBase table, Object[] data)

Default constructor used only in subclasses.

RowAVLback to summary
public RowAVL(TableBase table, Object[] data, long position, PersistentStore store)

Constructor for MEMORY table Row. The result is a Row with Nodes that are not yet linked with other Nodes in the AVL indexes.

Method Detail

clearNonPrimaryNodesback to summary
public void clearNonPrimaryNodes()
deleteback to summary
public void delete(PersistentStore store)

Overrides org.hsqldb.Row.delete.

destroyback to summary
public void destroy()

Overrides org.hsqldb.Row.destroy.

Implements org.hsqldb.persist.CachedObject.destroy.

Helps GC, removing secondary node links. Keeps primary index links to allow iteration.

getNextNodeback to summary
pack-priv NodeAVL getNextNode(NodeAVL n)

Returns the Node for the next Index on this database row, given the Node for any Index.

getNodeback to summary
public NodeAVL getNode(int index)

Returns the Node for a given Index, using the ordinal position of the Index within the Table Object.

insertNodeback to summary
public NodeAVL insertNode(int index)
restoreback to summary
public void restore()

Overrides org.hsqldb.Row.restore.

Implements org.hsqldb.persist.CachedObject.restore.

setNewNodesback to summary
public void setNewNodes(PersistentStore store)