title | description | keywords | author | ms.author | manager | ms.date | ms.topic | ms.service | ms.assetid | ROBOTS | audience | ms.devlang | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.custom |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rxSparkListData, rxSparkRemoveData {RevoScaleR} function (revoAnalytics) | Microsoft Docs |
Use these functions to manage the objects cached in the Spark memory system. These functions are only applicable when using [RxSpark](RxSpark.md) compute context. |
(revoAnalytics), rxSparkListData, rxSparkRemoveData {RevoScaleR}, rxSparkListData, rxSparkRemoveData |
chuckheinzelman |
charlhe |
cgronlun |
07/15/2019 |
reference |
mlserver |
Use these functions to manage the objects cached in the Spark memory system. These functions are only applicable when using RxSpark compute context.
rxSparkListData(showDescription=TRUE,
computeContext = rxGetOption("computeContext"))
rxSparkRemoveData(list,
computeContext = rxGetOption("computeContext"))
list of cached objects need to be deleted.
logical indicating whether or not to print out the detail to console.
RxSpark
compute context object.
List of all objects cached in Spark memory system for rxSparkListData
.
No return values for rxSparkRemoveData
.
## Not run:
cc <- rxSparkConnect()
colInfo = list( DayOfWeek = list(type = "factor"))
df <- RxParquetData(file = "/tmp/AirlineDemoSmall.parquet", colInfo = colInfo)
### example for rxSparkListData
## No object in list, because no algorithm has been run
rxSparkListData()
rxLogit((ArrDelay>0) ~ CRSDepTime + DayOfWeek, data = df)
## After the first run, a Spark data object is added into the list
rxSparkListData()
### example for rxSparkRemoveData
## remove an object
rxSparkRemoveData(df)
## remove all cached objs
rxSparkRemoveData(rxSparkListData())
rxSparkDisconnect(cc)
## End(Not run)