class_docstr: Replaces any 1-dimensional numpy array of doubles with a literal Java array.
  
  Added in version 0.4.0.
  
  Examples:
      >>> import numpy as np
      >>> from pyspark.sql.functions import lit
      >>> from pyspark.sql.types import StringType
      >>> str_list = ['a', 'b']
      >>> df = spark.createDataFrame(str_list, StringType())
      >>> ndarray = np.array([1.0, 2.1, 3.2])
      >>> df.withColumn("array", lit(ndarray)).collect()
      [Row(value='a', array=[1.0, 2.1, 3.2]), Row(value='b', array=[1.0, 2.1, 3.2])]
class_docstr_tok: ["Replaces","any","1-dimensional","numpy","array","of","doubles","with","a","literal","Java","array",".","Added","in","version","0.4.0",".","Examples",":",">",">",">","import","numpy","as","np",">",">",">","from","pyspark.sql.functions","import","lit",">",">",">","from","pyspark.sql.types","import","StringType",">",">",">","str_list","=","[","'","a","'",",","'","b","'","]",">",">",">","df","=","spark.createDataFrame","(","str_list",",","StringType","(",")",")",">",">",">","ndarray","=","np.array","(","[","1.0",",","2.1",",","3.2","]",")",">",">",">","df.withColumn","(","``","array","''",",","lit","(","ndarray",")",")",".collect","(",")","[","Row","(","value=","'","a","'",",","array=","[","1.0",",","2.1",",","3.2","]",")",",","Row","(","value=","'","b","'",",","array=","[","1.0",",","2.1",",","3.2","]",")","]"]
code: def convert(self, object, gateway_client):
      sc = SparkContext._active_spark_context
      java_arr = _convert_numpy_to_java_array(object)
      return java_arr
  
file_path: glow/python/glow/conversions.py
imports: import numpy
  from py4j.java_collections import JavaArray
  from pyspark import SparkContext
  from typeguard import check_argument_types, check_return_type
label_desc: Use image node_id 2 for calling the OneDimensionalDoubleNumpyArrayConverter obj's underlying member method code with example usage: obj.convert(object, gateway_client) and returns: java_arr