Description Usage Format Methods
Class to provide the functionality to read data from an input stream.
1 |
An object of class R6ClassGenerator of length 24.
initialize(kafka.host = 'imac.evionix.org:2181', kafka.stream = 'test')This method is used to create object of this class. It expects a host for
a kafka cluster (or the coordinating zookeeper therof) as input in the
kafka.host. Secondly, it also expects the stream on the kafka host
to listen on (kafka.stream. Warning! This function is currently
not implemented due to difficulties with the kafka R package (it needs
java and rjava, which causes problems on some systmes). Although
implementation is not a difficult task, it is currently removed for
compatibility reasons. One can recreate this function / class when
needed.
@param kafka.host the host address for the kafka stream
@param kafka.stream the particular stream to read from
getNext()Currently not implemented (see initialize for reasons)
Returns the next observation from the stream
@return one row of the dataframe the stream yields
getNextN(n=1)Currently not implemented (see initialize for reasons)
Returns the next n observations from the stream
@return data.table a number of n rows concatenated in a data.table
getNext()Method to retrieve the next observation from the stream.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.