| |
|
| java.lang.Object org.hsqldb.Row org.hsqldb.CachedRow org.hsqldb.CachedDataRow
CachedDataRow | class CachedDataRow extends CachedRow (Code) | | Implementation of rows for tables with memory resident indexes and
disk-based data, such as TEXT tables.
version: 1.7.2 |
Method Summary | |
public boolean | equals(Object obj) With the current implementation of TEXT table updates and inserts,
the lifetime scope of this method extends until redefinition of table
data source or shutdown.
Parameters: obj - the reference object with which to compare. | public int | getRealSize(RowOutputInterface out) | Row | getUpdatedRow() | public boolean | hasChanged() | void | setNewNodes() Used when data is read from the disk into the Cache the first time. | public void | setPos(int pos) Sets the file position for the row and registers the row with
the table. | void | setPrimaryNode(Node primary) Used when data is re-read from the disk into the Cache. | public void | write(RowOutputInterface out) Writes the data to disk. |
equals | public boolean equals(Object obj)(Code) | | With the current implementation of TEXT table updates and inserts,
the lifetime scope of this method extends until redefinition of table
data source or shutdown.
Parameters: obj - the reference object with which to compare. true if this object is the same as the obj argument;false otherwise. |
getRealSize | public int getRealSize(RowOutputInterface out)(Code) | | returned size does not include the row size written at the beginning
|
getUpdatedRow | Row getUpdatedRow() throws HsqlException(Code) | | As the indexes are in-memory, this passes the existing primary node
for the construction of the new Row
|
hasChanged | public boolean hasChanged()(Code) | | |
setNewNodes | void setNewNodes()(Code) | | Used when data is read from the disk into the Cache the first time.
New Nodes are created which are then indexed.
|
setPos | public void setPos(int pos)(Code) | | Sets the file position for the row and registers the row with
the table.
Parameters: pos - position in data file |
setPrimaryNode | void setPrimaryNode(Node primary)(Code) | | Used when data is re-read from the disk into the Cache. The Row is
already indexed so it is linked with the Node in the primary index.
the Nodes is made separetly.
|
write | public void write(RowOutputInterface out)(Code) | | Writes the data to disk. Unlike CachedRow, hasChanged is never set
to true when changes are made to the Nodes. (Nodes are in-memory).
The only time this is used is when a new Row is added to the Caches.
|
|
|
|