Class HeapFloatVector

    • Field Detail

      • vector

        public float[] vector
    • Constructor Detail

      • HeapFloatVector

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

      • setFloatsFromBinary

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