Package com.qfs.chunk
Interface IChunkBoolean
- All Superinterfaces:
IArray,IArrayReader,IArrayWriter,IChunk<Boolean>,IMemoryMonitored,IWritableArray
- All Known Implementing Classes:
ArrayChunkBoolean,BufferChunkBoolean,ChunkSingleBoolean,DirectChunkBoolean
A chunk of data that stores boolean values.
Specialized primitive read operations access the physical storage directly and ignore null
checks, so when dealing with implementations that support null values, the IArrayReader.isNull(int)
method must be called before reading the value.
- Author:
- ActiveViam
-
Field Summary
Fields inherited from interface com.qfs.chunk.IChunk
NO_SIZE_LIMIT -
Method Summary
Modifier and TypeMethodDescriptiondefault voidcopyInto(int position, IWritableCell cell) Copies the value at a given position in this chunk into the provided cell.booleanequals(int position, boolean value) Tests if the record stored at that position is equal to a value.voidfill(boolean value) Fills all slots in the chunk with the same value.default intGets the type for binding transfers of this chunk.default booleanReturns whether this chunk contains primitive data, as perTypes.isPrimitive(int).default voidwriteFromCell(int position, IReadableCell cell) Writes the content of the cell into the chunk at the given position.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, createArrayCursor, createFrequentValueChunk, destroy, findRowsEqualTo, findRowsEqualTo, findRowsEqualTo, findRowsInSet, findRowsInSet, findRowsInSet, findRowsInTransactionEqualTo, findRowsInTransactionEqualTo, findRowsInTransactionEqualTo, findRowsInTransactionInSet, findRowsInTransactionInSet, findRowsInTransactionInSet, freeRow, getChunkCreatorForSparse, getChunkId, getChunkType, getPhysicalSize, isDead, localRow, read, replaceBy, reset, sparseChunkCompression, transferMethods inherited from interface com.qfs.monitoring.memory.IMemoryMonitored
getMemoryStatistic
-
Method Details
-
isPrimitive
default boolean isPrimitive()Description copied from interface:IChunkReturns whether this chunk contains primitive data, as perTypes.isPrimitive(int).- Specified by:
isPrimitivein interfaceIChunk<Boolean>- Returns:
trueif this chunk contains primitive data, as perTypes.isPrimitive(int),falseotherwise
-
getBindingType
default int getBindingType()Description copied from interface:IChunkGets the type for binding transfers of this chunk.- Specified by:
getBindingTypein interfaceIChunk<Boolean>- Returns:
- the physical type like
Types.PHYSICAL_INT, etc
-
copyInto
Description copied from interface:IChunkCopies the value at a given position in this chunk into the provided cell. -
writeFromCell
Description copied from interface:IChunkWrites the content of the cell into the chunk at the given position.It is up to chunks to use the appropriate read method to avoid boxing as much as possible.
- Specified by:
writeFromCellin interfaceIChunk<Boolean>
-
fill
void fill(boolean value) Fills all slots in the chunk with the same value.- Parameters:
value- the value to fill the chunk with
-
equals
boolean equals(int position, boolean value) Tests if the record stored at that position is equal to a value.- Parameters:
position- the position to readvalue- the value to compare- Returns:
trueif the read value is the same as the given value,falseotherwise
-