Class HeapDoubleVector

    • Field Detail

      • vector

        public double[] vector
    • Constructor Detail

      • HeapDoubleVector

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

      • setDoublesFromBinary

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