Package com.qfs.chunk

Interface IChunkNullable<K>

    • Method Detail

      • 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