callback | R Documentation |
These classes are used to define callback behaviors.
Callback interface definition, all callback functions should inherit from this class.
Callback function that is used only for side effects, no results are returned.
Callback function that combines each result together at the end.
Callback function that accumulates a single result. Requires the parameter acc
to specify
the initial value of the accumulator. The parameter acc
is NULL
by default.
new()
ChunkCallback$new(callback)
receive()
ChunkCallback$receive(data, index)
continue()
ChunkCallback$continue()
result()
ChunkCallback$result()
finally()
ChunkCallback$finally()
clone()
The objects of this class are cloneable with this method.
ChunkCallback$clone(deep = FALSE)
deep
Whether to make a deep clone.
meltr::ChunkCallback
-> SideEffectChunkCallback
new()
SideEffectChunkCallback$new(callback)
receive()
SideEffectChunkCallback$receive(data, index)
continue()
SideEffectChunkCallback$continue()
clone()
The objects of this class are cloneable with this method.
SideEffectChunkCallback$clone(deep = FALSE)
deep
Whether to make a deep clone.
meltr::ChunkCallback
-> DataFrameCallback
new()
DataFrameCallback$new(callback)
receive()
DataFrameCallback$receive(data, index)
result()
DataFrameCallback$result()
finally()
DataFrameCallback$finally()
clone()
The objects of this class are cloneable with this method.
DataFrameCallback$clone(deep = FALSE)
deep
Whether to make a deep clone.
meltr::ChunkCallback
-> ListCallback
new()
ListCallback$new(callback)
receive()
ListCallback$receive(data, index)
result()
ListCallback$result()
finally()
ListCallback$finally()
clone()
The objects of this class are cloneable with this method.
ListCallback$clone(deep = FALSE)
deep
Whether to make a deep clone.
meltr::ChunkCallback
-> AccumulateCallback
new()
AccumulateCallback$new(callback, acc = NULL)
receive()
AccumulateCallback$receive(data, index)
result()
AccumulateCallback$result()
clone()
The objects of this class are cloneable with this method.
AccumulateCallback$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other chunked:
melt_delim_chunked()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.