本文整理汇总了Java中com.espertech.esper.client.Configuration.addPlugInSingleRowFunction方法的典型用法代码示例。如果您正苦于以下问题:Java Configuration.addPlugInSingleRowFunction方法的具体用法?Java Configuration.addPlugInSingleRowFunction怎么用?Java Configuration.addPlugInSingleRowFunction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.espertech.esper.client.Configuration
的用法示例。
在下文中一共展示了Configuration.addPlugInSingleRowFunction方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.addEventType("SupportBean", SupportBean.class);
configuration.addEventType("SupportBean_ST0_Container", SupportBean_ST0_Container.class);
configuration.addEventType("SupportDateTime", SupportDateTime.class);
configuration.addImport(SupportBean_ST0_Container.class);
configuration.addPlugInSingleRowFunction("makeTest", SupportBean_ST0_Container.class.getName(), "makeTest");
}
示例2: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.addEventType("SupportBean", SupportBean.class);
configuration.addEventType("SupportBean_ST0", SupportBean_ST0.class);
configuration.addEventType("SupportBean_ST0_Container", SupportBean_ST0_Container.class);
configuration.addEventType("SupportBeanComplexProps", SupportBeanComplexProps.class);
configuration.addEventType("SupportCollection", SupportCollection.class);
configuration.addImport(SupportBean_ST0_Container.class);
configuration.addPlugInSingleRowFunction("makeTest", SupportBean_ST0_Container.class.getName(), "makeTest");
}
示例3: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.addEventType("Item", Item.class);
configuration.addEventType("LocationReport", LocationReport.class);
configuration.addEventType("Zone", Zone.class);
configuration.addPlugInSingleRowFunction("inrect", LRUtil.class.getName(), "inrect");
configuration.addPlugInSingleRowFunction("distance", LRUtil.class.getName(), "distance");
configuration.addPlugInSingleRowFunction("getZoneNames", Zone.class.getName(), "getZoneNames");
}
示例4: registerConfiguration
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
/**
* Inject in Esper Configuration geospatial methods and classes
* @param configuration
*/
public static void registerConfiguration(Configuration configuration) {
// Inject methods to create Geometry variables
configuration.addPlugInSingleRowFunction("polygon", Geospatial.class.getName(), "createPolygon");
configuration.addPlugInSingleRowFunction("point", Geospatial.class.getName(), "createPoint");
configuration.addPlugInSingleRowFunction("geometry", Geospatial.class.getName(), "readGeometry");
// Register Geometry class
configuration.addImport(Geometry.class.getName());
}
示例5: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.addEventType("SupportBean", SupportBean.class);
configuration.addEventType("SupportBean_S0", SupportBean_S0.class);
configuration.getEngineDefaults().getLogging().setEnableExecutionDebug(true);
configuration.addPlugInSingleRowFunction("toArray", this.getClass().getName(), "toArray");
}
示例6: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.addImport(SupportStaticMethodLib.class.getName());
configuration.addPlugInSingleRowFunction("sleepme", SupportStaticMethodLib.class.getName(), "sleep", ConfigurationPlugInSingleRowFunction.ValueCache.ENABLED);
configuration.getEngineDefaults().getExpression().setUdfCache(false);
configuration.addEventType("Temperature", SupportTemperatureBean.class);
}
示例7: configure
import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
configuration.getEngineDefaults().getThreading().setThreadPoolInbound(true);
configuration.getEngineDefaults().getThreading().setThreadPoolInboundNumThreads(2);
configuration.addEventType(MyEvent.class);
configuration.addPlugInSingleRowFunction("sleepaLittle", this.getClass().getName(), "sleepaLittle");
}