Package com.qfs.multiversion
Interface IDiscardableChunkComponent
- All Superinterfaces:
ICompressible,IMemoryMonitored
- All Known Subinterfaces:
IMultiVersionConcreteReference
- All Known Implementing Classes:
AMultiVersionConcreteReference,AMultiVersionSecondaryRecordIndex,ChunkedIntegerArray,ChunkedLongArray,ColumnInteger,ColumnLong,MultiVersionCompositeSecondaryRecordIndex,MultiVersionIntegerArray,MultiVersionLazyDeleteLinkedIndex,MultiVersionLongArray,MultiVersionNoIndexConcreteReference,MultiVersionSecondaryConcreteReference,MultiVersionSecondaryRecordIndex,MultiVersionUniqueConcreteReference
A chunk-based component whose data can be discarded on a chunk basis.
When a whole chunk of its data is known to be unreachable by the system, the component is
informed that this chunk can be discarded.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptiondiscardChunk(int chunkId) Discards the chunk of data with the given ID.booleanisChunkDiscarded(int chunkId) Returns whether the chunk with the given id has beendiscardedor not.Methods inherited from interface com.qfs.memory.ICompressible
compress, compressMethods inherited from interface com.qfs.monitoring.memory.IMemoryMonitored
getMemoryStatistic
-
Method Details
-
discardChunk
Discards the chunk of data with the given ID.The given chunk is guaranteed not to be accessed anymore.
- Parameters:
chunkId- the id of the discarded chunk- Returns:
- the runnable to run to actually discard the chunk
-
isChunkDiscarded
boolean isChunkDiscarded(int chunkId) Returns whether the chunk with the given id has beendiscardedor not.- Parameters:
chunkId- the chunk id- Returns:
trueif the given chunk has been discarded,falseotherwise
-