org.hsqldb
Class RowDiskDataChange
- java.lang.Object
-
- org.hsqldb.Row
-
- org.hsqldb.RowAVL
-
- org.hsqldb.RowAVLDisk
-
- org.hsqldb.RowDiskDataChange
-
- All Implemented Interfaces:
- CachedObject
public class RowDiskDataChange extends RowAVLDisk
- Since:
- 2.2.7
-
-
Field Summary
Fields Modifier and Type Field and Description static intCOL_POS_IS_UPDATEstatic intCOL_POS_ROW_IDstatic intCOL_POS_ROW_NUMstatic intCOL_POS_SCHEMA_NAMEstatic intCOL_POS_TABLE_IDstatic intCOL_POS_TABLE_NAME-
Fields inherited from class org.hsqldb.RowAVLDisk
NO_POS
-
Fields inherited from class org.hsqldb.RowAVL
nPrimaryNode
-
Fields inherited from interface org.hsqldb.persist.CachedObject
emptyArray
-
-
Constructor Summary
Constructors Constructor and Description RowDiskDataChange(Session session, TableBase t, RowInputInterface in)Constructor when read from the disk into the Cache.RowDiskDataChange(TableBase t, java.lang.Object[] data, PersistentStore store, Table targetTable)Constructor for new Rows.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetRealSize(RowOutputInterface out)int[]getUpdateColumnMap()java.lang.Object[]getUpdateData()voidsetTargetTable(Table table)voidsetUpdateColumnMap(int[] colMap)voidsetUpdateData(java.lang.Object[] data)voidwrite(RowOutputInterface out)Used exclusively by Cache to save the row to disk.-
Methods inherited from class org.hsqldb.RowAVLDisk
delete, destroy, getAccessCount, getStorageSize, getTable, hasChanged, insertNode, isInMemory, isKeepInMemory, isMemory, isNew, keepInMemory, setChanged, setInMemory, setNewNodes, setNodesChanged, setPos, setStorageSize, updateAccessCount, write
-
Methods inherited from class org.hsqldb.RowAVL
clearNonPrimaryNodes, getNode, restore
-
-
-
-
Field Detail
-
COL_POS_ROW_NUM
public static final int COL_POS_ROW_NUM
- See Also:
- Constant Field Values
-
COL_POS_ROW_ID
public static final int COL_POS_ROW_ID
- See Also:
- Constant Field Values
-
COL_POS_TABLE_ID
public static final int COL_POS_TABLE_ID
- See Also:
- Constant Field Values
-
COL_POS_SCHEMA_NAME
public static final int COL_POS_SCHEMA_NAME
- See Also:
- Constant Field Values
-
COL_POS_TABLE_NAME
public static final int COL_POS_TABLE_NAME
- See Also:
- Constant Field Values
-
COL_POS_IS_UPDATE
public static final int COL_POS_IS_UPDATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RowDiskDataChange
public RowDiskDataChange(TableBase t, java.lang.Object[] data, PersistentStore store, Table targetTable)
Constructor for new Rows. Variable hasDataChanged is set to true in order to indicate the data needs saving.- Parameters:
t- tableo- row data
-
RowDiskDataChange
public RowDiskDataChange(Session session, TableBase t, RowInputInterface in) throws java.io.IOException
Constructor when read from the disk into the Cache.- Parameters:
t- tablein- data source- Throws:
java.io.IOException
-
-
Method Detail
-
write
public void write(RowOutputInterface out)
Description copied from class:RowAVLDiskUsed 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.- Specified by:
writein interfaceCachedObject- Overrides:
writein classRowAVLDisk
-
getUpdateData
public java.lang.Object[] getUpdateData()
-
getUpdateColumnMap
public int[] getUpdateColumnMap()
-
setTargetTable
public void setTargetTable(Table table)
-
setUpdateData
public void setUpdateData(java.lang.Object[] data)
-
setUpdateColumnMap
public void setUpdateColumnMap(int[] colMap)
-
getRealSize
public int getRealSize(RowOutputInterface out)
- Specified by:
getRealSizein interfaceCachedObject- Overrides:
getRealSizein classRowAVLDisk
-
-
DataMelt 3.0 © DataMelt by jWork.ORG