当前位置: 首页>>代码示例>>Java>>正文


Java Configuration.addVariable方法代码示例

本文整理汇总了Java中com.espertech.esper.client.Configuration.addVariable方法的典型用法代码示例。如果您正苦于以下问题:Java Configuration.addVariable方法的具体用法?Java Configuration.addVariable怎么用?Java Configuration.addVariable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.espertech.esper.client.Configuration的用法示例。


在下文中一共展示了Configuration.addVariable方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
    configuration.addEventType("TypeS0", SupportBean_S0.class);
    configuration.addEventType("TypeS2", SupportBean_S2.class);

    configuration.addVariable("vars0_A", "TypeS0", new SupportBean_S0(10));
    configuration.addVariable("vars1_A", SupportBean_S1.class.getName(), new SupportBean_S1(20));
    configuration.addVariable("varsobj1", Object.class.getName(), 123);

    nonSerializable = new NonSerializable("abc");
    configuration.addVariable("myNonSerializable", NonSerializable.class, nonSerializable);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:12,代码来源:ExecVariablesEventTyped.java

示例2: configure

import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
    configuration.getEngineDefaults().getLogging().setEnableQueryPlan(true);
    configuration.getEngineDefaults().getLogging().setEnableCode(true);
    configuration.getEngineDefaults().getByteCodeGeneration().setIncludeDebugSymbols(true);

    configuration.addEventType(SupportBeanInt.class);
    configuration.addImport(SupportJoinMethods.class.getName());
    configuration.addVariable("var1", Integer.class, 0);
    configuration.addVariable("var2", Integer.class, 0);
    configuration.addVariable("var3", Integer.class, 0);
    configuration.addVariable("var4", Integer.class, 0);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:13,代码来源:ExecFromClauseMethodNStream.java

示例3: configure

import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
    configuration.addEventType(SupportBeanInt.class);
    configuration.addEventType(SupportBean.class);
    configuration.addImport(SupportJoinMethods.class.getName());
    configuration.addVariable("var1", Integer.class, 0);
    configuration.addVariable("var2", Integer.class, 0);
    configuration.addVariable("var3", Integer.class, 0);
    configuration.addVariable("var4", Integer.class, 0);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:10,代码来源:ExecFromClauseMethodOuterNStream.java

示例4: configure

import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
    configuration.addVariable("var", int.class, 0);

    ConfigurationEventTypeXMLDOM xmlDOMEventTypeDesc = new ConfigurationEventTypeXMLDOM();
    xmlDOMEventTypeDesc.setRootElementName("myevent");
    xmlDOMEventTypeDesc.addXPathProperty("xpathAttrNum", "/myevent/@attrnum", XPathConstants.STRING, "long");
    xmlDOMEventTypeDesc.addXPathProperty("xpathAttrNumTwo", "/myevent/@attrnumtwo", XPathConstants.STRING, "long");
    configuration.addEventType("TestXMLNoSchemaType", xmlDOMEventTypeDesc);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:10,代码来源:ExecEventXMLNoSchemaVariableAndDotMethodResolution.java

示例5: configure

import com.espertech.esper.client.Configuration; //导入方法依赖的package包/类
public void configure(Configuration configuration) throws Exception {
    configuration.addEventType("MyEvent", SupportRecogBean.class);
    configuration.addImport(SupportStaticMethodLib.class.getName());
    configuration.addImport(Hint.class.getName());
    configuration.addVariable("mySleepDuration", long.class, 100);    // msec
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:7,代码来源:ExecRowRecogIterateOnly.java


注:本文中的com.espertech.esper.client.Configuration.addVariable方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。