Package com.qfs.chunk

Interface IChunkBoolean

All Superinterfaces:
IArray, IArrayReader, IArrayWriter, IChunk<Boolean>, IMemoryMonitored, IWritableArray
All Known Implementing Classes:
ArrayChunkBoolean, BufferChunkBoolean, ChunkSingleBoolean, DirectChunkBoolean

public interface IChunkBoolean extends IChunk<Boolean>
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
  • Method Details

    • isPrimitive

      default boolean isPrimitive()
      Description copied from interface: IChunk
      Returns whether this chunk contains primitive data, as per Types.isPrimitive(int).
      Specified by:
      isPrimitive in interface IChunk<Boolean>
      Returns:
      true if this chunk contains primitive data, as per Types.isPrimitive(int), false otherwise
    • getBindingType

      default int getBindingType()
      Description copied from interface: IChunk
      Gets the type for binding transfers of this chunk.
      Specified by:
      getBindingType in interface IChunk<Boolean>
      Returns:
      the physical type like Types.PHYSICAL_INT, etc
    • copyInto

      default void copyInto(int position, IWritableCell cell)
      Description copied from interface: IChunk
      Copies the value at a given position in this chunk into the provided cell.
      Specified by:
      copyInto in interface IChunk<Boolean>
      Parameters:
      position - row of the chunk to read
    • writeFromCell

      default void writeFromCell(int position, IReadableCell cell)
      Description copied from interface: IChunk
      Writes 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:
      writeFromCell in interface IChunk<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 read
      value - the value to compare
      Returns:
      true if the read value is the same as the given value, false otherwise