Package com.qfs.chunk

Interface IChunkBoolean

    • Method Detail

      • 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