org.hsqldb.persist
Class RowStoreAVLHybrid
- java.lang.Object
-
- org.hsqldb.persist.RowStoreAVL
-
- org.hsqldb.persist.RowStoreAVLHybrid
-
- All Implemented Interfaces:
- PersistentStore
- Direct Known Subclasses:
- RowStoreAVLHybridExtended, RowStoreDataChange
public class RowStoreAVLHybrid extends RowStoreAVL implements PersistentStore
-
-
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 RowStoreAVLHybrid(Session session, PersistentStoreCollection manager, TableBase table, boolean diskBased)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(Session session, CachedObject object, boolean tx)add new objectvoidchangeToDiskTable(Session session)voidcommitPersistence(CachedObject row)commit persisted imagevoidcommitRow(Session session, Row row, int changeAction, int txModel)voiddelete(Session session, Row row)Basic delete with no logging or referential checks.CachedObjectget(CachedObject object, boolean keep)CachedObjectget(long i)get objectCachedObjectget(long i, 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)booleanhasNull(int pos)voidindexRow(Session session, Row row)booleanisMemory()voidrelease()voidremove(CachedObject object)remove both persisted and cached copiesvoidremoveAll()voidresetAccessorKeys(Session session, Index[] keys)voidrollbackRow(Session session, Row row, int changeAction, int txModel)voidset(CachedObject object)voidsetCache(DataFileCache cache)voidsetMemory(boolean mode)-
Methods inherited from class org.hsqldb.persist.RowStoreAVL
canRead, canRead, elementCount, elementCount, elementCountUnique, get, getAccessorKeys, getAccessorStore, getDefaultObjectSize, getNewInstance, getSpaceManager, getTable, getTimestamp, indexRows, moveData, moveDataToSpace, postCommitAction, reindex, rowIterator, searchCost, setAccessor, setAccessor, setElementCount, setReadOnly, setSpaceManager, setTimestamp, writeLock, writeUnlock
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hsqldb.persist.PersistentStore
canRead, canRead, elementCount, elementCount, elementCountUnique, get, getAccessorKeys, getAccessorStore, getDefaultObjectSize, getNewInstance, getSpaceManager, getTable, getTimestamp, indexRows, moveData, moveDataToSpace, postCommitAction, reindex, rowIterator, searchCost, setAccessor, setAccessor, setElementCount, setReadOnly, setSpaceManager, setTimestamp, writeLock, writeUnlock
-
-
-
-
Constructor Detail
-
RowStoreAVLHybrid
public RowStoreAVLHybrid(Session session, PersistentStoreCollection manager, TableBase table, boolean diskBased)
-
-
Method Detail
-
isMemory
public boolean isMemory()
- Specified by:
isMemoryin interfacePersistentStore- Specified by:
isMemoryin classRowStoreAVL
-
setMemory
public void setMemory(boolean mode)
- Specified by:
setMemoryin interfacePersistentStore- Overrides:
setMemoryin 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 i)
Description copied from interface:PersistentStoreget object- Specified by:
getin interfacePersistentStore
-
get
public CachedObject get(long i, 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
-
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
-
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
-
commitPersistence
public void commitPersistence(CachedObject row)
Description copied from interface:PersistentStorecommit persisted image- Specified by:
commitPersistencein interfacePersistentStore- Specified by:
commitPersistencein classRowStoreAVL
-
commitRow
public void commitRow(Session session, Row row, int changeAction, int txModel)
- Specified by:
commitRowin interfacePersistentStore
-
rollbackRow
public void rollbackRow(Session session, Row row, int changeAction, int txModel)
- Specified by:
rollbackRowin interfacePersistentStore
-
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()
- Specified by:
releasein interfacePersistentStore- Specified by:
releasein classRowStoreAVL
-
delete
public void delete(Session session, Row row)
Description copied from class:RowStoreAVLBasic delete with no logging or referential checks.- Specified by:
deletein interfacePersistentStore- Overrides:
deletein classRowStoreAVL
-
getAccessor
public CachedObject getAccessor(Index key)
- Specified by:
getAccessorin interfacePersistentStore- Overrides:
getAccessorin classRowStoreAVL
-
resetAccessorKeys
public void resetAccessorKeys(Session session, Index[] keys)
- Specified by:
resetAccessorKeysin interfacePersistentStore- Overrides:
resetAccessorKeysin classRowStoreAVL
-
hasNull
public boolean hasNull(int pos)
- Specified by:
hasNullin interfacePersistentStore- Overrides:
hasNullin classRowStoreAVL
-
changeToDiskTable
public final void changeToDiskTable(Session session)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG