Description Arguments Value Author(s) See Also Examples
AddFinalize
is an auxiliary function for building up a RStorm
topology. After initializing a Topology
object the AddFinalize
function can be used to add a final function, which receives as its parameter a list of all hashMaps stored during the stream. After running the stream GetHashList
can be used to receive an object that is the same as the object received by the finalize function.
topology |
a |
bolt |
a |
.verbose |
a logical indicator to state whether or not verbose output should be printed. |
An object of type Topology
which is a list containing the following elements:
spout |
the data.frame passed as a spout |
bolts |
a list of bolts, see |
finailze |
the finalize function to be used for the stream |
The specified Bolt
has now been added to the finalize function. See Topology
for more info.
Maurits Kaptein
See Also: Topology
, Bolt
, RStorm
1 2 3 4 | bolt1 <- function(x, ...){print(x)}
topology <- Topology(data.frame(x=c(1:10)))
topology <- AddFinalize(topology, Bolt(bolt1))
topology
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.