Top Fields Constructors Methods
org.hsqldb

public Class RowDiskDataChange

extends RowAVLDisk
Class Inheritance
Imports
org.hsqldb.persist.PersistentStore, org.hsqldb.rowio.RowInputBinary, .RowInputInterface, .RowOutputBinary, .RowOutputInterface, org.hsqldb.types.ArrayType, .Type

Author
Fred Toussi (fredt@users dot sourceforge dot net)
Since
2.2.7
Version
2.4.0

Field Summary

Modifier and TypeField and Description
pack-priv static final Type[]
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
pack-priv Table
pack-priv int[]
pack-priv Object[]
Inherited from org.hsqldb.RowAVLDisk:
hasDataChangedisFromFileisInMemoryisNewkeepCountNO_POSstorageSize

Constructor Summary

AccessConstructor and Description
public
RowDiskDataChange(TableBase
table
t
,
Object[]
row data
data
,
PersistentStore store, Table targetTable)

Constructor for new Rows.

public
RowDiskDataChange(Session
the session
session
,
PersistentStore
store
store
,
RowInputInterface
data source
in
)

Constructor when read from the disk into the Cache.

Method Summary

Modifier and TypeMethod and Description
public int
public int[]
public Object[]
public void
public void
setUpdateColumnMap(int[] colMap)

public void
public void
write(RowOutputInterface out)

Overrides org.hsqldb.RowAVLDisk.write.

Implements org.hsqldb.persist.CachedObject.write.

Used exclusively by Cache to save the row to disk.

Inherited from org.hsqldb.RowAVLDisk:
deletedestroygetAccessCountgetStorageSizegetTablehasChangedinsertNodeisInMemoryisKeepInMemoryisMemoryisNewkeepInMemorysetChangedsetInMemorysetNewNodessetNodesChangedsetPossetStorageSizeupdateAccessCountwritewriteNodes

Field Detail

arrayTypeback to summary
pack-priv static final Type[] arrayType
COL_POS_IS_UPDATEback to summary
public static final int COL_POS_IS_UPDATE
COL_POS_ROW_IDback to summary
public static final int COL_POS_ROW_ID
COL_POS_ROW_NUMback to summary
public static final int COL_POS_ROW_NUM
COL_POS_SCHEMA_NAMEback to summary
public static final int COL_POS_SCHEMA_NAME
COL_POS_TABLE_IDback to summary
public static final int COL_POS_TABLE_ID
COL_POS_TABLE_NAMEback to summary
public static final int COL_POS_TABLE_NAME
targetTableback to summary
pack-priv Table targetTable
updateColMapback to summary
pack-priv int[] updateColMap
updateDataback to summary
pack-priv Object[] updateData

Constructor Detail

RowDiskDataChangeback to summary
public RowDiskDataChange(TableBase t, 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:TableBase

table

data:Object[]

row data

RowDiskDataChangeback to summary
public RowDiskDataChange(Session session, PersistentStore store, RowInputInterface in)

Constructor when read from the disk into the Cache.

Parameters
session:Session

the session

store:PersistentStore

store

in:RowInputInterface

data source

Method Detail

getRealSizeback to summary
public int getRealSize(RowOutputInterface out)

Overrides org.hsqldb.RowAVLDisk.getRealSize.

Implements org.hsqldb.persist.CachedObject.getRealSize.

getUpdateColumnMapback to summary
public int[] getUpdateColumnMap()
getUpdateDataback to summary
public Object[] getUpdateData()
setTargetTableback to summary
public void setTargetTable(Table table)
setUpdateColumnMapback to summary
public void setUpdateColumnMap(int[] colMap)
setUpdateDataback to summary
public void setUpdateData(Object[] data)
writeback to summary
public void write(RowOutputInterface out)

Overrides org.hsqldb.RowAVLDisk.write.

Implements org.hsqldb.persist.CachedObject.write.

Doc from org.hsqldb.RowAVLDisk.write.

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.