Class HeapIntVector

    • Field Detail

      • vector

        public int[] vector
    • Constructor Detail

      • HeapIntVector

        public HeapIntVector​(int len)
        Don't use this except for testing purposes.
        Parameters:
        len - the number of rows
    • Method Detail

      • setInt

        public void setInt​(int i,
                           int value)
        Description copied from interface: WritableIntVector
        Set int at rowId with the provided value.
        Specified by:
        setInt in interface WritableIntVector
      • setIntsFromBinary

        public void setIntsFromBinary​(int rowId,
                                      int count,
                                      byte[] src,
                                      int srcIndex)
        Description copied from interface: WritableIntVector
        Set ints from binary, need use UNSAFE to copy.
        Specified by:
        setIntsFromBinary in interface WritableIntVector
        Parameters:
        rowId - set start rowId.
        count - count for int, so the bytes size is count * 4.
        src - source binary.
        srcIndex - source binary index, it is the index for byte index.
      • setInts

        public void setInts​(int rowId,
                            int count,
                            int value)
        Description copied from interface: WritableIntVector
        Sets value to [rowId, rowId + count) by the value, this is data that repeats continuously.
        Specified by:
        setInts in interface WritableIntVector
      • setInts

        public void setInts​(int rowId,
                            int count,
                            int[] src,
                            int srcIndex)
        Description copied from interface: WritableIntVector
        Sets values from [src[srcIndex], src[srcIndex + count]) to [rowId, rowId + count).
        Specified by:
        setInts in interface WritableIntVector
      • fill

        public void fill​(int value)
        Description copied from interface: WritableIntVector
        Fill the column vector with the provided value.
        Specified by:
        fill in interface WritableIntVector