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 storenullvalues.- Author:
- ActiveViam
-
-
Field Summary
-
Fields inherited from interface com.qfs.chunk.IChunk
NO_SIZE_LIMIT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IChunk<K>compressAsNotNullable(IRowMapping mapping, int[] arrayMapping, int newChunkSize, IChunkFactory<K> defaultChunkCreator)Compresses the chunk knowing there are not anynullin the chunk.RunnabledestroyNullFlags()Returns the runnable to run to destroy the nullable flags.-
Methods inherited from interface com.qfs.chunk.IArrayReader
isNull, readBoolean, readDouble, readFloat, readInt, readLong, readVector
-
Methods inherited from interface com.qfs.chunk.IArrayWriter
addDouble, addFloat, addInt, addLong, write, writeBoolean, writeDouble, writeFloat, writeInt, writeLong
-
Methods 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, writeFromCell
-
Methods inherited from interface com.qfs.monitoring.memory.IMemoryMonitored
getMemoryStatistic
-
-
-
-
Method Detail
-
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
-
-