Convert Spark DataFrame to Pojo Object

后端 未结 2 1858
半阙折子戏
半阙折子戏 2021-01-03 05:16

Please see below code:

    //Create Spark Context
    SparkConf sparkConf = new SparkConf().setAppName(\"TestWithObjects\").setMaster(\"local\");
    JavaSpa         


        
2条回答
  •  無奈伤痛
    2021-01-03 05:28

    A DataFrame is stored as Rows, so you can use the methods there to cast from untyped to typed. Take a look at the get methods.

提交回复
热议问题