org.hsqldb
Class RowAVL
- java.lang.Object
-
- org.hsqldb.Row
-
- org.hsqldb.RowAVL
-
- All Implemented Interfaces:
- CachedObject
- Direct Known Subclasses:
- RowAVLDisk, RowAVLDiskData
public class RowAVL extends Row
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.
- Since:
- Hypersonic SQL
-
-
Field Summary
Fields Modifier and Type Field and Description NodeAVLnPrimaryNode-
Fields inherited from interface org.hsqldb.persist.CachedObject
emptyArray
-
-
Constructor Summary
Constructors Constructor and Description RowAVL(TableBase table, java.lang.Object[] data, int position, PersistentStore store)Constructor for MEMORY table Row.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclearNonPrimaryNodes()voiddelete(PersistentStore store)voiddestroy()Helps GC, removing secondary node links.NodeAVLgetNode(int index)Returns the Node for a given Index, using the ordinal position of the Index within the Table Object.NodeAVLinsertNode(int index)voidrestore()voidsetNewNodes(PersistentStore store)-
Methods inherited from class org.hsqldb.Row
equals, getAccessCount, getAction, getData, getDefaultCapacity, getId, getPos, getRealSize, getStorageSize, getTable, hasChanged, hashCode, isBlock, isInMemory, isKeepInMemory, isMemory, isNew, keepInMemory, read, setChanged, setInMemory, setPos, setStorageSize, updateAccessCount, write, write
-
-
-
-
Field Detail
-
nPrimaryNode
public NodeAVL nPrimaryNode
-
-
Constructor Detail
-
RowAVL
public RowAVL(TableBase table, java.lang.Object[] data, int 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
-
setNewNodes
public void setNewNodes(PersistentStore store)
-
getNode
public NodeAVL getNode(int index)
Returns the Node for a given Index, using the ordinal position of the Index within the Table Object.
-
insertNode
public NodeAVL insertNode(int index)
-
clearNonPrimaryNodes
public void clearNonPrimaryNodes()
-
delete
public void delete(PersistentStore store)
-
restore
public void restore()
- Specified by:
restorein interfaceCachedObject- Overrides:
restorein classRow
-
destroy
public void destroy()
Helps GC, removing secondary node links. Keeps primary index links to allow iteration.- Specified by:
destroyin interfaceCachedObject- Overrides:
destroyin classRow
-
-
DataMelt 3.0 © DataMelt by jWork.ORG