org.hsqldb.persist
Class RowStoreAVL
- java.lang.Object
-
- org.hsqldb.persist.RowStoreAVL
-
- All Implemented Interfaces:
- PersistentStore
- Direct Known Subclasses:
- RowStoreAVLDisk, RowStoreAVLDiskData, RowStoreAVLHybrid, RowStoreAVLMemory
public abstract class RowStoreAVL extends java.lang.Object 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 RowStoreAVL()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract voidadd(Session session, CachedObject object, boolean tx)add new objectbooleancanRead(Session session, CachedObject object, int mode, int[] colMap)booleancanRead(Session session, long pos, int mode, int[] colMap)abstract voidcommitPersistence(CachedObject object)commit persisted imagevoiddelete(Session session, Row row)Basic delete with no logging or referential checks.longelementCount()longelementCount(Session session)longelementCountUnique(Index index)abstract CachedObjectget(CachedObject object, boolean keep)CachedObjectget(CachedObject object, RowInputInterface in)abstract CachedObjectget(long key, boolean keep)get object with keep, ensuring future gets will return the same instance of the objectabstract CachedObjectget(RowInputInterface in)abstract intgetAccessCount()CachedObjectgetAccessor(Index key)Index[]getAccessorKeys()PersistentStoregetAccessorStore(Index index)abstract DataFileCachegetCache()intgetDefaultObjectSize()abstract CachedObjectgetNewCachedObject(Session session, java.lang.Object object, boolean tx)CachedObjectgetNewInstance(int size)TableSpaceManagergetSpaceManager()TableBasegetTable()longgetTimestamp()booleanhasNull(int pos)voidindexRow(Session session, Row row)voidindexRows(Session session)abstract booleanisMemory()voidmoveData(Session session, PersistentStore other, int colindex, int adjust)Moves the data from an old store to new after changes to table The colindex argument is the index of the column that was added or removed.voidmoveDataToSpace()voidpostCommitAction(Session session, RowAction action)voidreindex(Session session, Index index)abstract voidrelease()abstract voidremove(CachedObject object)remove both persisted and cached copiesabstract voidremoveAll()voidresetAccessorKeys(Session session, Index[] keys)RowIteratorrowIterator()doublesearchCost(Session session, Index index, int count, int opType)abstract voidset(CachedObject object)voidsetAccessor(Index key, CachedObject accessor)voidsetAccessor(Index key, long accessor)abstract voidsetCache(DataFileCache cache)voidsetElementCount(Index key, long size, long uniqueSize)voidsetMemory(boolean mode)voidsetReadOnly(boolean readOnly)voidsetSpaceManager(TableSpaceManager manager)voidsetTimestamp(long timestamp)voidwriteLock()voidwriteUnlock()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hsqldb.persist.PersistentStore
commitRow, get, rollbackRow
-
-
-
-
Method Detail
-
getTable
public TableBase getTable()
- Specified by:
getTablein interfacePersistentStore
-
getTimestamp
public long getTimestamp()
- Specified by:
getTimestampin interfacePersistentStore
-
setTimestamp
public void setTimestamp(long timestamp)
- Specified by:
setTimestampin interfacePersistentStore
-
isMemory
public abstract boolean isMemory()
- Specified by:
isMemoryin interfacePersistentStore
-
setMemory
public void setMemory(boolean mode)
- Specified by:
setMemoryin interfacePersistentStore
-
getAccessCount
public abstract int getAccessCount()
- Specified by:
getAccessCountin interfacePersistentStore
-
set
public abstract void set(CachedObject object)
- Specified by:
setin interfacePersistentStore
-
get
public abstract 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
-
get
public abstract CachedObject get(CachedObject object, boolean keep)
- Specified by:
getin interfacePersistentStore
-
add
public abstract void add(Session session, CachedObject object, boolean tx)
Description copied from interface:PersistentStoreadd new object- Specified by:
addin interfacePersistentStore
-
canRead
public boolean canRead(Session session, long pos, int mode, int[] colMap)
- Specified by:
canReadin interfacePersistentStore
-
canRead
public boolean canRead(Session session, CachedObject object, int mode, int[] colMap)
- Specified by:
canReadin interfacePersistentStore
-
get
public abstract CachedObject get(RowInputInterface in)
- Specified by:
getin interfacePersistentStore
-
get
public CachedObject get(CachedObject object, RowInputInterface in)
- Specified by:
getin interfacePersistentStore
-
getNewInstance
public CachedObject getNewInstance(int size)
- Specified by:
getNewInstancein interfacePersistentStore
-
getDefaultObjectSize
public int getDefaultObjectSize()
- Specified by:
getDefaultObjectSizein interfacePersistentStore
-
getNewCachedObject
public abstract CachedObject getNewCachedObject(Session session, java.lang.Object object, boolean tx)
- Specified by:
getNewCachedObjectin interfacePersistentStore
-
removeAll
public abstract void removeAll()
- Specified by:
removeAllin interfacePersistentStore
-
remove
public abstract void remove(CachedObject object)
Description copied from interface:PersistentStoreremove both persisted and cached copies- Specified by:
removein interfacePersistentStore
-
commitPersistence
public abstract void commitPersistence(CachedObject object)
Description copied from interface:PersistentStorecommit persisted image- Specified by:
commitPersistencein interfacePersistentStore
-
postCommitAction
public void postCommitAction(Session session, RowAction action)
- Specified by:
postCommitActionin interfacePersistentStore
-
getCache
public abstract DataFileCache getCache()
- Specified by:
getCachein interfacePersistentStore
-
getSpaceManager
public TableSpaceManager getSpaceManager()
- Specified by:
getSpaceManagerin interfacePersistentStore
-
setSpaceManager
public void setSpaceManager(TableSpaceManager manager)
- Specified by:
setSpaceManagerin interfacePersistentStore
-
setCache
public abstract void setCache(DataFileCache cache)
- Specified by:
setCachein interfacePersistentStore
-
release
public abstract void release()
- Specified by:
releasein interfacePersistentStore
-
getAccessorStore
public PersistentStore getAccessorStore(Index index)
- Specified by:
getAccessorStorein interfacePersistentStore
-
getAccessor
public CachedObject getAccessor(Index key)
- Specified by:
getAccessorin interfacePersistentStore
-
delete
public void delete(Session session, Row row)
Basic delete with no logging or referential checks.- Specified by:
deletein interfacePersistentStore
-
indexRow
public void indexRow(Session session, Row row)
- Specified by:
indexRowin interfacePersistentStore
-
indexRows
public final void indexRows(Session session)
- Specified by:
indexRowsin interfacePersistentStore
-
rowIterator
public final RowIterator rowIterator()
- Specified by:
rowIteratorin interfacePersistentStore
-
setAccessor
public void setAccessor(Index key, CachedObject accessor)
- Specified by:
setAccessorin interfacePersistentStore
-
setAccessor
public void setAccessor(Index key, long accessor)
- Specified by:
setAccessorin interfacePersistentStore
-
resetAccessorKeys
public void resetAccessorKeys(Session session, Index[] keys)
- Specified by:
resetAccessorKeysin interfacePersistentStore
-
getAccessorKeys
public Index[] getAccessorKeys()
- Specified by:
getAccessorKeysin interfacePersistentStore
-
searchCost
public double searchCost(Session session, Index index, int count, int opType)
- Specified by:
searchCostin interfacePersistentStore
-
elementCount
public long elementCount()
- Specified by:
elementCountin interfacePersistentStore
-
elementCount
public long elementCount(Session session)
- Specified by:
elementCountin interfacePersistentStore
-
elementCountUnique
public long elementCountUnique(Index index)
- Specified by:
elementCountUniquein interfacePersistentStore
-
setElementCount
public void setElementCount(Index key, long size, long uniqueSize)
- Specified by:
setElementCountin interfacePersistentStore
-
hasNull
public boolean hasNull(int pos)
- Specified by:
hasNullin interfacePersistentStore
-
moveDataToSpace
public void moveDataToSpace()
- Specified by:
moveDataToSpacein interfacePersistentStore
-
moveData
public final void moveData(Session session, PersistentStore other, int colindex, int adjust)
Moves the data from an old store to new after changes to table The colindex argument is the index of the column that was added or removed. The adjust argument is {-1 | 0 | +1}- Specified by:
moveDatain interfacePersistentStore
-
reindex
public void reindex(Session session, Index index)
- Specified by:
reindexin interfacePersistentStore
-
setReadOnly
public void setReadOnly(boolean readOnly)
- Specified by:
setReadOnlyin interfacePersistentStore
-
writeLock
public void writeLock()
- Specified by:
writeLockin interfacePersistentStore
-
writeUnlock
public void writeUnlock()
- Specified by:
writeUnlockin interfacePersistentStore
-
-
DataMelt 3.0 © DataMelt by jWork.ORG