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
A chunk that can store
null values.- Author:
- ActiveViam
-
Field Summary
Fields inherited from interface com.qfs.chunk.IChunk
NO_SIZE_LIMIT -
Method Summary
Modifier and TypeMethodDescriptioncompressAsNotNullable(IRowMapping mapping, int[] arrayMapping, int newChunkSize, IChunkFactory<K> defaultChunkCreator) Compresses the chunk knowing there are not anynullin the chunk.Returns the runnable to run to destroy the nullable flags.Methods inherited from interface com.qfs.chunk.IArrayReader
isNull, readBoolean, readDouble, readFloat, readInt, readLong, readVectorMethods inherited from interface com.qfs.chunk.IArrayWriter
addDouble, addFloat, addInt, addLong, write, writeBoolean, writeDouble, writeFloat, writeInt, writeLongMethods inherited from interface com.qfs.chunk.IChunk
capacity, compress, copyInto, createArrayCursor, createFrequentValueChunk, destroy, findRowsEqualTo, findRowsEqualTo, findRowsEqualTo, findRowsInSet, findRowsInSet, findRowsInSet, findRowsInTransactionEqualTo, findRowsInTransactionEqualTo, findRowsInTransactionEqualTo, findRowsInTransactionInSet, findRowsInTransactionInSet, findRowsInTransactionInSet, freeRow, getBindingType, getChunkCreatorForSparse, getChunkId, getChunkType, getPhysicalSize, isDead, isPrimitive, localRow, read, replaceBy, reset, sparseChunkCompression, transfer, writeFromCellMethods inherited from interface com.qfs.monitoring.memory.IMemoryMonitored
getMemoryStatistic
-
Method Details
-
compressAsNotNullable
IChunk<K> compressAsNotNullable(IRowMapping mapping, int[] arrayMapping, int newChunkSize, IChunkFactory<K> defaultChunkCreator) Compresses the chunk knowing there are not anynullin the chunk.- Parameters:
mapping- the mapping from the rows of this chunk to those of the compressed chunk (ornullif we compress all rows)arrayMapping- the array representation of the mapping (ornullif we compress all rows)newChunkSize- the size of the chunk we want to createdefaultChunkCreator- 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
-