org.hsqldb.persist
Class RowStoreAVLDisk
- java.lang.Object
-
- org.hsqldb.persist.RowStoreAVL
-
- org.hsqldb.persist.RowStoreAVLDisk
-
- All Implemented Interfaces:
- PersistentStore
public class RowStoreAVLDisk 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 RowStoreAVLDisk(PersistentStoreCollection manager, DataFileCache cache, Table table)
-
Method Summary
All Methods Static 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(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()voidmoveDataToSpace()static voidmoveDataToSpace(PersistentStore store, DataFileCache cache, TableSpaceManager tableSpace, LongLookup pointerLookup)voidpostCommitAction(Session session, RowAction action)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)voidsetAccessor(Index key, long accessor)voidsetCache(DataFileCache cache)Works only for TEXT TABLE as others need specific spaceManagervoidsetReadOnly(boolean readOnly)voidwriteLock()voidwriteUnlock()-
Methods inherited from class org.hsqldb.persist.RowStoreAVL
canRead, canRead, delete, elementCount, elementCount, elementCountUnique, get, getAccessorKeys, getAccessorStore, getDefaultObjectSize, getNewInstance, getSpaceManager, getTable, getTimestamp, hasNull, indexRows, moveData, reindex, rowIterator, searchCost, setAccessor, setElementCount, setMemory, setSpaceManager, setTimestamp
-
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, delete, elementCount, elementCount, elementCountUnique, get, getAccessorKeys, getAccessorStore, getDefaultObjectSize, getNewInstance, getSpaceManager, getTable, getTimestamp, hasNull, indexRows, moveData, reindex, rowIterator, searchCost, setAccessor, setElementCount, setMemory, setSpaceManager, setTimestamp
-
-
-
-
Constructor Detail
-
RowStoreAVLDisk
public RowStoreAVLDisk(PersistentStoreCollection manager, DataFileCache cache, Table table)
-
-
Method Detail
-
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- Specified by:
getin interfacePersistentStore
-
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
-
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
-
postCommitAction
public void postCommitAction(Session session, RowAction action)
- Specified by:
postCommitActionin interfacePersistentStore- Overrides:
postCommitActionin classRowStoreAVL
-
getCache
public DataFileCache getCache()
- Specified by:
getCachein interfacePersistentStore- Specified by:
getCachein classRowStoreAVL
-
setCache
public void setCache(DataFileCache cache)
Works only for TEXT TABLE as others need specific spaceManager- Specified by:
setCachein interfacePersistentStore- Specified by:
setCachein classRowStoreAVL
-
release
public void release()
- Specified by:
releasein interfacePersistentStore- Specified by:
releasein classRowStoreAVL
-
getAccessor
public CachedObject getAccessor(Index key)
- Specified by:
getAccessorin interfacePersistentStore- Overrides:
getAccessorin classRowStoreAVL
-
setAccessor
public void setAccessor(Index key, long accessor)
- Specified by:
setAccessorin interfacePersistentStore- Overrides:
setAccessorin classRowStoreAVL
-
resetAccessorKeys
public void resetAccessorKeys(Session session, Index[] keys)
- Specified by:
resetAccessorKeysin interfacePersistentStore- Overrides:
resetAccessorKeysin classRowStoreAVL
-
setReadOnly
public void setReadOnly(boolean readOnly)
- Specified by:
setReadOnlyin interfacePersistentStore- Overrides:
setReadOnlyin classRowStoreAVL
-
moveDataToSpace
public void moveDataToSpace()
- Specified by:
moveDataToSpacein interfacePersistentStore- Overrides:
moveDataToSpacein classRowStoreAVL
-
moveDataToSpace
public static void moveDataToSpace(PersistentStore store, DataFileCache cache, TableSpaceManager tableSpace, LongLookup pointerLookup)
-
writeLock
public void writeLock()
- Specified by:
writeLockin interfacePersistentStore- Overrides:
writeLockin classRowStoreAVL
-
writeUnlock
public void writeUnlock()
- Specified by:
writeUnlockin interfacePersistentStore- Overrides:
writeUnlockin classRowStoreAVL
-
-
DataMelt 3.0 © DataMelt by jWork.ORG