New class derived from Hypersonic SQL code and enhanced in HSQLDB.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | hasDataChanged
Flag indicating unwritten data. |
| private boolean | hasNodesChanged
Flag indicating Node data has changed. |
| pack-priv boolean | |
| pack-priv volatile boolean | |
| pack-priv boolean | |
| pack-priv int | |
| public static final int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RowAVLDisk(PersistentStore
store store, RowInputInterface data source in)Constructor when read from the disk into the Cache. |
| pack-priv |
| hasDataChanged | back to summary |
|---|---|
| pack-priv boolean hasDataChanged Flag indicating unwritten data. | |
| hasNodesChanged | back to summary |
|---|---|
| private boolean hasNodesChanged Flag indicating Node data has changed. | |
| isFromFile | back to summary |
|---|---|
| pack-priv boolean isFromFile | |
| isInMemory | back to summary |
|---|---|
| pack-priv volatile boolean isInMemory | |
| isNew | back to summary |
|---|---|
| pack-priv boolean isNew | |
| keepCount | back to summary |
|---|---|
| pack-priv int keepCount | |
| NO_POS | back to summary |
|---|---|
| public static final int NO_POS | |
| storageSize | back to summary |
|---|---|
| pack-priv int storageSize | |
| RowAVLDisk | back to summary |
|---|---|
| public RowAVLDisk(TableBase t, Object[] o, PersistentStore store) Constructor for new Rows. Variable hasDataChanged is set to true in order to indicate the data needs saving. | |
| RowAVLDisk | back to summary |
|---|---|
| public RowAVLDisk(PersistentStore store, RowInputInterface in) Constructor when read from the disk into the Cache.
| |
| RowAVLDisk | back to summary |
|---|---|
| pack-priv RowAVLDisk(TableBase t) | |
| delete | back to summary |
|---|---|
| public void delete(PersistentStore store) Overrides org. No action as references don't need to be removed | |
| destroy | back to summary |
|---|---|
| public void destroy() Overrides org. Implements org. Doc from org. Helps GC, removing secondary node links. Keeps primary index links to allow iteration. | |
| getAccessCount | back to summary |
|---|---|
| public int getAccessCount() Overrides org. Implements org. | |
| getRealSize | back to summary |
|---|---|
| public int getRealSize(RowOutputInterface out) Overrides org. Implements org. | |
| getStorageSize | back to summary |
|---|---|
| public int getStorageSize() Overrides org. Implements org. | |
| getTable | back to summary |
|---|---|
| public TableBase getTable() Overrides org. Returns the Table to which this Row belongs.
| |
| hasChanged | back to summary |
|---|---|
| public synchronized boolean hasChanged() Overrides org. Implements org. Returns true if Node data has changed.
| |
| insertNode | back to summary |
|---|---|
| public NodeAVL insertNode(int index) Overrides org. | |
| isInMemory | back to summary |
|---|---|
| public synchronized boolean isInMemory() Overrides org. Implements org. | |
| isKeepInMemory | back to summary |
|---|---|
| public synchronized boolean isKeepInMemory() Overrides org. Implements org. Returns true if any of the Nodes for this row is a root node. Used only in Cache.java to avoid removing the row from the cache.
| |
| isMemory | back to summary |
|---|---|
| public boolean isMemory() Overrides org. Implements org. | |
| isNew | back to summary |
|---|---|
| public boolean isNew() Overrides org. Implements org. | |
| keepInMemory | back to summary |
|---|---|
| public synchronized boolean keepInMemory(boolean keep) Overrides org. Implements org. | |
| readRowInfo | back to summary |
|---|---|
| private void readRowInfo(RowInputInterface in) | |
| setChanged | back to summary |
|---|---|
| public synchronized void setChanged(boolean flag) Overrides org. Implements org. | |
| setInMemory | back to summary |
|---|---|
| public synchronized void setInMemory(boolean in) Overrides org. Implements org. | |
| setNewNodes | back to summary |
|---|---|
| public void setNewNodes(PersistentStore store) Overrides org. | |
| setNodesChanged | back to summary |
|---|---|
| public synchronized void setNodesChanged() Sets flag for Node data change. | |
| setPos | back to summary |
|---|---|
| public void setPos(long pos) Overrides org. Implements org. Sets the file position for the row
| |
| setStorageSize | back to summary |
|---|---|
| public void setStorageSize(int size) Overrides org. Implements org. | |
| updateAccessCount | back to summary |
|---|---|
| public void updateAccessCount(int count) Overrides org. Implements org. | |
| write | back to summary |
|---|---|
| public void write(RowOutputInterface out) Overrides org. Implements org. Used exclusively by Cache to save the row to disk. New implementation in 1.7.2 writes out only the Node data if the table row data has not changed. This situation accounts for the majority of invocations as for each row deleted or inserted, the Nodes for several other rows will change. | |
| write | back to summary |
|---|---|
| public void write(RowOutputInterface out, LongLookup lookup) Overrides org. Implements org. | |
| writeNodes | back to summary |
|---|---|
| pack-priv void writeNodes(RowOutputInterface out) Writes the Nodes, immediately after the row size.
| |