Class Py4jConverterUtils


  • public class Py4jConverterUtils
    extends Object
    Utils for converting python data to java.
    • Constructor Detail

      • Py4jConverterUtils

        public Py4jConverterUtils()
    • Method Detail

      • convertPy4JArrayToMB

        public static MatrixBlock convertPy4JArrayToMB​(byte[] data,
                                                       int rlen,
                                                       int clen)
      • convertPy4JArrayToMB

        public static MatrixBlock convertPy4JArrayToMB​(byte[] data,
                                                       int rlen,
                                                       int clen,
                                                       Types.ValueType valueType)
      • convertSciPyCOOToMB

        public static MatrixBlock convertSciPyCOOToMB​(byte[] data,
                                                      byte[] row,
                                                      byte[] col,
                                                      int rlen,
                                                      int clen,
                                                      int nnz)
      • allocateDenseOrSparse

        public static MatrixBlock allocateDenseOrSparse​(int rlen,
                                                        int clen,
                                                        boolean isSparse)
      • allocateDenseOrSparse

        public static MatrixBlock allocateDenseOrSparse​(long rlen,
                                                        long clen,
                                                        boolean isSparse)
      • convertPy4JArrayToMB

        public static MatrixBlock convertPy4JArrayToMB​(byte[] data,
                                                       int rlen,
                                                       int clen,
                                                       boolean isSparse,
                                                       Types.ValueType valueType)
      • convertMBtoPy4JDenseArr

        public static byte[] convertMBtoPy4JDenseArr​(MatrixBlock mb)