public static class LensRDDClient.LensRDDResult extends Object implements Serializable
Constructor and Description |
---|
LensRDDResult()
Instantiates a new lens rdd result.
|
LensRDDResult(org.apache.spark.rdd.RDD<List<Object>> rdd,
QueryHandle lensQuery,
String tempTableName)
Instantiates a new lens rdd result.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteTempTable()
Delete temp table.
|
QueryHandle |
getLensQuery() |
org.apache.spark.rdd.RDD<List<Object>> |
getRDD() |
String |
getTempTableName() |
org.apache.spark.rdd.RDD<List<Object>> |
recreateRDD(org.apache.spark.api.java.JavaSparkContext sparkContext)
Recreate RDD.
|
public LensRDDResult(org.apache.spark.rdd.RDD<List<Object>> rdd, QueryHandle lensQuery, String tempTableName)
rdd
- the rddlensQuery
- the lens querytempTableName
- the temp table namepublic LensRDDResult()
public QueryHandle getLensQuery()
public org.apache.spark.rdd.RDD<List<Object>> recreateRDD(org.apache.spark.api.java.JavaSparkContext sparkContext) throws LensException
sparkContext
- the spark contextLensException
- the lens exceptionpublic String getTempTableName()
public void deleteTempTable() throws LensException
LensException
- the lens exceptionCopyright © 2014–2018 Apache Software Foundation. All rights reserved.