Top Fields Constructors Methods
org.hsqldb.persist

public Class DoubleIntArrayCachedObject

extends CachedObjectBase
Class Inheritance
Imports
org.hsqldb.lib.DoubleIntIndex, .LongLookup, org.hsqldb.rowio.RowInputInterface, .RowOutputInterface

Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
2.5.1
Version
2.5.1

Field Summary

Modifier and TypeField and Description
public static final int
pack-priv DoubleIntIndex
Inherited from org.hsqldb.persist.CachedObjectBase:
accessCounthasChangedisInMemoryisMemorykeepCountpositionstorageSize

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
addKey(int key, int value)

public void
public int
public int
public int
getValue(int key)

assumes all values are zero or positive

public int
getValue(int key, int def)

public void
public boolean
removeKey(int key)

public void
public void
Inherited from org.hsqldb.persist.CachedObjectBase:
destroyequalsgetAccessCountgetPosgetStorageSizehasChangedhashCodeisBlockisInMemoryisInvariableisKeepInMemoryisMemoryisNewkeepInMemoryrestoresetChangedsetInMemorysetPossetStorageSizeupdateAccessCount

Field Detail

fileSizeFactorback to summary
public static final int fileSizeFactor
tableback to summary
pack-priv DoubleIntIndex table

Constructor Detail

DoubleIntArrayCachedObjectback to summary
public DoubleIntArrayCachedObject(int capacity)

Method Detail

addKeyback to summary
public boolean addKey(int key, int value)
clearback to summary
public void clear()
getDefaultCapacityback to summary
public int getDefaultCapacity()

Implements org.hsqldb.persist.CachedObject.getDefaultCapacity.

getRealSizeback to summary
public int getRealSize(RowOutputInterface out)

Implements org.hsqldb.persist.CachedObject.getRealSize.

getValueback to summary
public int getValue(int key)

assumes all values are zero or positive

getValueback to summary
public int getValue(int key, int def)
readback to summary
public void read(RowInputInterface in)

Implements org.hsqldb.persist.CachedObject.read.

removeKeyback to summary
public boolean removeKey(int key)
writeback to summary
public void write(RowOutputInterface out)

Implements org.hsqldb.persist.CachedObject.write.

writeback to summary
public void write(RowOutputInterface out, LongLookup lookup)

Implements org.hsqldb.persist.CachedObject.write.