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

public interface IDiscardableChunkComponent extends IMemoryMonitored, ICompressible
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 Details

    • discardChunk

      Runnable discardChunk(int chunkId)
      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 been discarded or not.
      Parameters:
      chunkId - the chunk id
      Returns:
      true if the given chunk has been discarded, false otherwise