![]() |
Code Examples
A repository of 155 code examples for BeepBeep
|
Create a mining function from BeepBeep processors. More...
Static Public Member Functions | |
static void | main (String[] args) throws FunctionException |
Create a mining function from BeepBeep processors.
This example is identical to MaxMiningFunction, except that it uses BeepBeep processors to perform the same mining task, instead of custom code. As a result, the solution here is about 3 times shorter (in absolute number of lines of code, roughly 5 vs. 15).
The function is parameterized as follows:
Parameter | Value |
---|---|
![]() | ![]() |
![]() | ![]() |
As one can see, the trend processor computes the maximum value on a stream. The aggregation processor runs yet another instance of the max processor, by feeding the elements of the input set one by one and returning its last value.
Definition at line 60 of file MaxMiningFunctionProcessor.java.