Skip to main content

Posts

Showing posts with the label Java

Creating Custom Java Simple Functions

Creating Custom Java Simple Functions Simple custom Java functions can be called in expressions in the context of most   StreamBase   components, other than the Aggregate operator. Follow these steps to create a custom Java simple function: ·          Use the   New StreamBase Java Function   wizard to create the base code, as described in   Using the StreamBase Java Function Wizard . ·          Implement a   public static   in a public Java class. ·          Observe the guidelines in   Method Parameter and Return Types . For example,   Hypotenuse.java   in the sample application declares the following class and method: public class Hypotenuse {     public static double calculate(double a, double b) {         return Math.sqrt(a*a + b*b);     } } At co...