Package db

Class SparseRecord

  • All Implemented Interfaces:
    java.lang.Comparable<DBRecord>

    public class SparseRecord
    extends DBRecord
    • Method Detail

      • write

        public void write​(Buffer buf,
                          int offset)
                   throws java.io.IOException
        Description copied from class: DBRecord
        Write the record fields to the specified buffer and offset.
        Overrides:
        write in class DBRecord
        Parameters:
        buf - data buffer
        offset - buffer offset
        Throws:
        java.io.IOException - thrown if IO error occurs
      • read

        public void read​(Buffer buf,
                         int offset)
                  throws java.io.IOException
        Description copied from class: DBRecord
        Read the record field data from the specified buffer and offset
        Overrides:
        read in class DBRecord
        Parameters:
        buf - data buffer
        offset - buffer offset
        Throws:
        java.io.IOException - thrown if IO error occurs
      • setField

        public void setField​(int colIndex,
                             Field value)
        Description copied from class: DBRecord
        Set the field value for the specified field.
        Overrides:
        setField in class DBRecord
        Parameters:
        colIndex - field index
        value - field value (null permitted for sparse column only)
      • setLongValue

        public void setLongValue​(int colIndex,
                                 long value)
        Description copied from class: DBRecord
        Set the long value for the specified field.
        Overrides:
        setLongValue in class DBRecord
        Parameters:
        colIndex - field index
        value - field value
      • setIntValue

        public void setIntValue​(int colIndex,
                                int value)
        Description copied from class: DBRecord
        Set the integer value for the specified field.
        Overrides:
        setIntValue in class DBRecord
        Parameters:
        colIndex - field index
        value - field value
      • setShortValue

        public void setShortValue​(int colIndex,
                                  short value)
        Description copied from class: DBRecord
        Set the short value for the specified field.
        Overrides:
        setShortValue in class DBRecord
        Parameters:
        colIndex - field index
        value - field value
      • setByteValue

        public void setByteValue​(int colIndex,
                                 byte value)
        Description copied from class: DBRecord
        Set the byte value for the specified field.
        Overrides:
        setByteValue in class DBRecord
        Parameters:
        colIndex - field index
        value - field value
      • setBooleanValue

        public void setBooleanValue​(int colIndex,
                                    boolean value)
        Description copied from class: DBRecord
        Set the boolean value for the specified field.
        Overrides:
        setBooleanValue in class DBRecord
        Parameters:
        colIndex - field index
        value - field value