org.hsqldb.persist
Class RowStoreAVLDiskData
- java.lang.Object
-
- org.hsqldb.persist.RowStoreAVL
-
- org.hsqldb.persist.RowStoreAVLDiskData
-
- All Implemented Interfaces:
- PersistentStore
public class RowStoreAVLDiskData extends RowStoreAVL
-
-
Field Summary
-
Fields inherited from interface org.hsqldb.persist.PersistentStore
emptyArray, INT_STORE_SIZE, LONG_STORE_SIZE, SHORT_STORE_SIZE
-
-
Constructor Summary
Constructors Constructor and Description RowStoreAVLDiskData(PersistentStoreCollection manager, Table table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(Session session, CachedObject object, boolean tx)add new objectvoidcommitPersistence(CachedObject row)commit persisted imagevoidcommitRow(Session session, Row row, int changeAction, int txModel)CachedObjectget(CachedObject object, boolean keep)CachedObjectget(CachedObject object, RowInputInterface in)CachedObjectget(long key)get objectCachedObjectget(long key, boolean keep)get object with keep, ensuring future gets will return the same instance of the objectCachedObjectget(RowInputInterface in)intgetAccessCount()CachedObjectgetAccessor(Index key)DataFileCachegetCache()CachedObjectgetNewCachedObject(Session session, java.lang.Object object, boolean tx)voidindexRow(Session session, Row row)booleanisMemory()voidrelease()Does not adjust usage countvoidremove(CachedObject object)remove both persisted and cached copiesvoidremoveAll()voidrollbackRow(Session session, Row row, int changeAction, int txModel)voidset(CachedObject object)voidsetCache(DataFileCache cache)-
Methods inherited from class org.hsqldb.persist.RowStoreAVL
canRead, canRead, delete, elementCount, elementCount, elementCountUnique, getAccessorKeys, getAccessorStore, getDefaultObjectSize, getNewInstance, getSpaceManager, getTable, getTimestamp, hasNull, indexRows, moveData, moveDataToSpace, postCommitAction, reindex, resetAccessorKeys, rowIterator, searchCost, setAccessor, setAccessor, setElementCount, setMemory, setReadOnly, setSpaceManager, setTimestamp, writeLock, writeUnlock
-
-
-
-
Constructor Detail
-
RowStoreAVLDiskData
public RowStoreAVLDiskData(PersistentStoreCollection manager, Table table)
-
-
Method Detail
-
get
public CachedObject get(long key, boolean keep)
Description copied from interface:PersistentStoreget object with keep, ensuring future gets will return the same instance of the object- Specified by:
getin interfacePersistentStore- Specified by:
getin classRowStoreAVL
-
get
public CachedObject get(CachedObject object, boolean keep)
- Specified by:
getin interfacePersistentStore- Specified by:
getin classRowStoreAVL
-
add
public void add(Session session, CachedObject object, boolean tx)
Description copied from interface:PersistentStoreadd new object- Specified by:
addin interfacePersistentStore- Specified by:
addin classRowStoreAVL
-
get
public CachedObject get(RowInputInterface in)
- Specified by:
getin interfacePersistentStore- Specified by:
getin classRowStoreAVL
-
get
public CachedObject get(CachedObject object, RowInputInterface in)
- Specified by:
getin interfacePersistentStore- Overrides:
getin classRowStoreAVL
-
getNewCachedObject
public CachedObject getNewCachedObject(Session session, java.lang.Object object, boolean tx)
- Specified by:
getNewCachedObjectin interfacePersistentStore- Specified by:
getNewCachedObjectin classRowStoreAVL
-
indexRow
public void indexRow(Session session, Row row)
- Specified by:
indexRowin interfacePersistentStore- Overrides:
indexRowin classRowStoreAVL
-
isMemory
public boolean isMemory()
- Specified by:
isMemoryin interfacePersistentStore- Specified by:
isMemoryin classRowStoreAVL
-
getAccessCount
public int getAccessCount()
- Specified by:
getAccessCountin interfacePersistentStore- Specified by:
getAccessCountin classRowStoreAVL
-
set
public void set(CachedObject object)
- Specified by:
setin interfacePersistentStore- Specified by:
setin classRowStoreAVL
-
get
public CachedObject get(long key)
Description copied from interface:PersistentStoreget object
-
removeAll
public void removeAll()
- Specified by:
removeAllin interfacePersistentStore- Specified by:
removeAllin classRowStoreAVL
-
remove
public void remove(CachedObject object)
Description copied from interface:PersistentStoreremove both persisted and cached copies- Specified by:
removein interfacePersistentStore- Specified by:
removein classRowStoreAVL
-
getAccessor
public CachedObject getAccessor(Index key)
- Specified by:
getAccessorin interfacePersistentStore- Overrides:
getAccessorin classRowStoreAVL
-
commitPersistence
public void commitPersistence(CachedObject row)
Description copied from interface:PersistentStorecommit persisted image- Specified by:
commitPersistencein interfacePersistentStore- Specified by:
commitPersistencein classRowStoreAVL
-
getCache
public DataFileCache getCache()
- Specified by:
getCachein interfacePersistentStore- Specified by:
getCachein classRowStoreAVL
-
setCache
public void setCache(DataFileCache cache)
- Specified by:
setCachein interfacePersistentStore- Specified by:
setCachein classRowStoreAVL
-
release
public void release()
Does not adjust usage count- Specified by:
releasein interfacePersistentStore- Specified by:
releasein classRowStoreAVL
-
-
DataMelt 3.0 © DataMelt by jWork.ORG