|
|||||||||
| Home >> All >> org >> [ hsqldb overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hsqldb
Class PointerNode

java.lang.Objectorg.hsqldb.Node
org.hsqldb.MemoryNode
org.hsqldb.PointerNode
- class PointerNode
- extends MemoryNode
Text table node implementation.
Nodes for the AVL tree are all built and kept in memory while the actual
row data is accessed through TextCache from disk.
This extends MemoryNode by maintaining a disk based offset for the
Row data. (fredt@users)
- Version:
- 1.7.1
| Field Summary | |
protected int |
iBalance
|
private int |
iData
|
private int |
iId
|
private int |
iRight
|
protected Node |
nLeft
|
(package private) Node |
nNext
|
(package private) static int |
NO_POS
|
protected Node |
nParent
|
protected Node |
nRight
|
protected Row |
rData
|
private Table |
tTable
|
(package private) static int |
TYPE_DISK
|
(package private) static int |
TYPE_MEMORY
|
(package private) static int |
TYPE_POINTER
|
| Constructor Summary | |
(package private) |
PointerNode(CachedRow r)
|
| Method Summary | |
(package private) void |
delete()
Method declaration |
(package private) boolean |
equals(Node n)
|
private Node |
findNode(int pos,
int id)
|
(package private) boolean |
from()
Method declaration |
(package private) int |
getBalance()
|
(package private) java.lang.Object[] |
getData()
Returns the data held in the table Row for this Node |
(package private) int |
getKey()
File offset of Node. |
(package private) Node |
getLeft()
|
(package private) Node |
getParent()
|
(package private) Node |
getRight()
|
(package private) Node |
getRightPointer()
Used with PointerNode objects only |
(package private) Row |
getRow()
|
(package private) boolean |
isRoot()
|
(package private) static Node |
newNode(Row r,
DatabaseRowInputInterface in,
int id,
Table t)
|
(package private) static Node |
newNode(Row r,
int id,
Table t)
|
(package private) void |
setBalance(int b)
|
(package private) void |
setKey(int pos)
Used with CachedRow objects only |
(package private) void |
setLeft(Node n)
|
(package private) void |
setNextKey(int i)
Used at construction |
(package private) void |
setParent(Node n)
|
(package private) void |
setRight(Node n)
|
(package private) void |
write(DatabaseRowOutputInterface out)
Method declaration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
iId
private int iId
iData
private int iData
tTable
private Table tTable
iRight
private int iRight
nLeft
protected Node nLeft
nRight
protected Node nRight
nParent
protected Node nParent
TYPE_MEMORY
static final int TYPE_MEMORY
- See Also:
- Constant Field Values
TYPE_DISK
static final int TYPE_DISK
- See Also:
- Constant Field Values
TYPE_POINTER
static final int TYPE_POINTER
- See Also:
- Constant Field Values
NO_POS
static final int NO_POS
- See Also:
- Constant Field Values
iBalance
protected int iBalance
rData
protected Row rData
nNext
Node nNext
| Constructor Detail |
PointerNode
PointerNode(CachedRow r)
| Method Detail |
delete
void delete()
- Description copied from class:
MemoryNode - Method declaration
- Overrides:
deletein classMemoryNode
getKey
int getKey()
- Description copied from class:
Node - File offset of Node. Used with CachedRow objects only
- Overrides:
getKeyin classMemoryNode
setKey
void setKey(int pos)
- Description copied from class:
Node - Used with CachedRow objects only
- Overrides:
setKeyin classMemoryNode
getRow
Row getRow() throws java.sql.SQLException
- Overrides:
getRowin classMemoryNode
findNode
private Node findNode(int pos, int id) throws java.sql.SQLException
getRight
Node getRight() throws java.sql.SQLException
- Overrides:
getRightin classMemoryNode
getRightPointer
Node getRightPointer() throws java.sql.SQLException
- Used with PointerNode objects only
- Overrides:
getRightPointerin classMemoryNode
setRight
void setRight(Node n) throws java.sql.SQLException
- Overrides:
setRightin classMemoryNode
setNextKey
void setNextKey(int i)
throws java.sql.SQLException
- Used at construction
getData
java.lang.Object[] getData() throws java.sql.SQLException
- Description copied from class:
Node - Returns the data held in the table Row for this Node
- Overrides:
getDatain classMemoryNode
equals
boolean equals(Node n) throws java.sql.SQLException
- Overrides:
equalsin classMemoryNode
getLeft
Node getLeft() throws java.sql.SQLException
setLeft
void setLeft(Node n) throws java.sql.SQLException
getParent
Node getParent() throws java.sql.SQLException
isRoot
boolean isRoot()
setParent
void setParent(Node n) throws java.sql.SQLException
setBalance
void setBalance(int b)
throws java.sql.SQLException
- Specified by:
setBalancein classNode
from
boolean from()
throws java.sql.SQLException
write
void write(DatabaseRowOutputInterface out) throws java.io.IOException, java.sql.SQLException
newNode
static final Node newNode(Row r, int id, Table t)
newNode
static final Node newNode(Row r, DatabaseRowInputInterface in, int id, Table t) throws java.io.IOException, java.sql.SQLException
getBalance
final int getBalance()
throws java.sql.SQLException
|
|||||||||
| Home >> All >> org >> [ hsqldb overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC