Package com.qfs.chunk

Interface IChunkNullable<K>

Type Parameters:
K - the type of data stored by the chunk
All Superinterfaces:
IArray, IArrayNullable, IArrayReader, IArrayWriter, IChunk<K>, IMemoryMonitored, IWritableArray
All Known Implementing Classes:
ADirectChunkNullable, ArrayChunkDoubleNullable, ArrayChunkFloatNullable, ArrayChunkIntegerNullable, ArrayChunkLongNullable, BufferChunkDoubleNullable, BufferChunkFloatNullable, BufferChunkLongNullable, BufferChunkPrimitiveIntsNullable, ChunkObject, ChunkVector, DirectChunkDoubleNullable, DirectChunkFloatNullable, DirectChunkIntegerNullable, DirectChunkLongNullable, FrequentNullDoubleChunk, FrequentNullFloatChunk, FrequentNullIntegerChunk, FrequentNullLongChunk, FrequentObjectChunk, NullableFrequentDoubleChunk, NullableFrequentFloatChunk, NullableFrequentIntegerChunk, NullableFrequentLongChunk

public interface IChunkNullable<K> extends IChunk<K>, IArrayNullable
A chunk that can store null values.
Author:
ActiveViam
  • Method Details

    • compressAsNotNullable

      IChunk<K> compressAsNotNullable(IRowMapping mapping, int[] arrayMapping, int newChunkSize, IChunkFactory<K> defaultChunkCreator)
      Compresses the chunk knowing there are not any null in the chunk.
      Parameters:
      mapping - the mapping from the rows of this chunk to those of the compressed chunk (or null if we compress all rows)
      arrayMapping - the array representation of the mapping (or null if we compress all rows)
      newChunkSize - the size of the chunk we want to create
      defaultChunkCreator - the chunk creator for a "normal" chunk (if this chunks knows of a better way to sparse itself, it can use it)
      Returns:
      the compressed chunk
    • destroyNullFlags

      Runnable destroyNullFlags()
      Returns the runnable to run to destroy the nullable flags.
      Returns:
      the runnable to run to destroy the nullable flags