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


Java EventTypeMetadata类代码示例

本文整理汇总了Java中com.espertech.esper.event.EventTypeMetadata的典型用法代码示例。如果您正苦于以下问题:Java EventTypeMetadata类的具体用法?Java EventTypeMetadata怎么用?Java EventTypeMetadata使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: runAssertionVariantTwoJoin

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
private void runAssertionVariantTwoJoin(EPServiceProvider epService) {
    String stmtText = "insert into Event_1_2J " +
            "select intPrimitive - intBoxed as delta, intPrimitive * intBoxed as product " +
            "from " + SupportBean.class.getName() + "#length(100) as s0," +
            SupportBean_A.class.getName() + "#length(100) as s1 " +
            " where s0.theString = s1.id";

    EPStatement stmt = tryAssertsVariant(epService, stmtText, null, "Event_1_2J");

    // assert type metadata
    EventTypeSPI type = (EventTypeSPI) ((EPServiceProviderSPI) epService).getEventAdapterService().getExistsTypeByName("Event_1_2J");
    assertEquals(null, type.getMetadata().getOptionalApplicationType());
    assertEquals(null, type.getMetadata().getOptionalSecondaryNames());
    assertEquals("Event_1_2J", type.getMetadata().getPrimaryName());
    assertEquals("Event_1_2J", type.getMetadata().getPublicName());
    assertEquals("Event_1_2J", type.getName());
    assertEquals(EventTypeMetadata.TypeClass.STREAM, type.getMetadata().getTypeClass());
    assertEquals(false, type.getMetadata().isApplicationConfigured());
    assertEquals(false, type.getMetadata().isApplicationPreConfigured());
    assertEquals(false, type.getMetadata().isApplicationPreConfiguredStatic());

    stmt.destroy();
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:24,代码来源:ExecInsertInto.java

示例2: runAssertionMetadata

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
private void runAssertionMetadata(EPServiceProvider epService) {
    EventTypeSPI type = (EventTypeSPI) ((EPServiceProviderSPI) epService).getEventAdapterService().getExistsTypeByName("myMapEvent");
    assertEquals(EventTypeMetadata.ApplicationType.MAP, type.getMetadata().getOptionalApplicationType());
    assertEquals(null, type.getMetadata().getOptionalSecondaryNames());
    assertEquals("myMapEvent", type.getMetadata().getPrimaryName());
    assertEquals("myMapEvent", type.getMetadata().getPublicName());
    assertEquals("myMapEvent", type.getName());
    assertEquals(EventTypeMetadata.TypeClass.APPLICATION, type.getMetadata().getTypeClass());
    assertEquals(true, type.getMetadata().isApplicationConfigured());
    assertEquals(true, type.getMetadata().isApplicationPreConfigured());
    assertEquals(true, type.getMetadata().isApplicationPreConfiguredStatic());

    EPAssertionUtil.assertEqualsAnyOrder(new Object[]{
        new EventPropertyDescriptor("myInt", Integer.class, null, false, false, false, false, false),
        new EventPropertyDescriptor("myString", String.class, null, false, false, false, false, false),
        new EventPropertyDescriptor("beanA", SupportBeanComplexProps.class, null, false, false, false, false, true),
        new EventPropertyDescriptor("myStringArray", String[].class, String.class, false, false, true, false, false),
    }, type.getPropertyDescriptors());
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:20,代码来源:ExecEventMap.java

示例3: runAssertionMetadata

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
private void runAssertionMetadata(EPServiceProvider epService) {

        // assert type metadata
        EventTypeSPI type = (EventTypeSPI) ((EPServiceProviderSPI) epService).getValueAddEventService().getValueAddProcessor("MyVariantStream").getValueAddEventType();
        assertEquals(null, type.getMetadata().getOptionalApplicationType());
        assertEquals(null, type.getMetadata().getOptionalSecondaryNames());
        assertEquals("MyVariantStream", type.getMetadata().getPrimaryName());
        assertEquals("MyVariantStream", type.getMetadata().getPublicName());
        assertEquals("MyVariantStream", type.getName());
        assertEquals(EventTypeMetadata.TypeClass.VARIANT, type.getMetadata().getTypeClass());
        assertEquals(true, type.getMetadata().isApplicationConfigured());
        assertEquals(true, type.getMetadata().isApplicationPreConfigured());
        assertEquals(true, type.getMetadata().isApplicationPreConfiguredStatic());

        EventType[] valueAddTypes = ((EPServiceProviderSPI) epService).getValueAddEventService().getValueAddedTypes();
        assertEquals(1, valueAddTypes.length);
        assertSame(type, valueAddTypes[0]);

        assertEquals(0, type.getPropertyNames().length);
        assertEquals(0, type.getPropertyDescriptors().length);
    }
 
开发者ID:espertechinc,项目名称:esper,代码行数:22,代码来源:ExecEventVariantStreamAny.java

示例4: runAssertionMetadata

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
private void runAssertionMetadata(EPServiceProvider epService) {
    EventTypeSPI type = (EventTypeSPI) ((EPServiceProviderSPI) epService).getEventAdapterService().getExistsTypeByName("MyObjectArrayEvent");
    assertEquals(EventTypeMetadata.ApplicationType.OBJECTARR, type.getMetadata().getOptionalApplicationType());
    assertEquals(null, type.getMetadata().getOptionalSecondaryNames());
    assertEquals("MyObjectArrayEvent", type.getMetadata().getPrimaryName());
    assertEquals("MyObjectArrayEvent", type.getMetadata().getPublicName());
    assertEquals("MyObjectArrayEvent", type.getName());
    assertEquals(EventTypeMetadata.TypeClass.APPLICATION, type.getMetadata().getTypeClass());
    assertEquals(true, type.getMetadata().isApplicationConfigured());
    assertEquals(true, type.getMetadata().isApplicationPreConfigured());
    assertEquals(true, type.getMetadata().isApplicationPreConfiguredStatic());

    EventType[] types = ((EPServiceProviderSPI) epService).getEventAdapterService().getAllTypes();
    assertEquals(1, types.length);

    EPAssertionUtil.assertEqualsAnyOrder(new Object[]{
        new EventPropertyDescriptor("myInt", Integer.class, null, false, false, false, false, false),
        new EventPropertyDescriptor("myString", String.class, null, false, false, false, false, false),
        new EventPropertyDescriptor("beanA", SupportBeanComplexProps.class, null, false, false, false, false, true),
    }, type.getPropertyDescriptors());
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:22,代码来源:ExecEventObjectArray.java

示例5: getTypeHandler

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
public PlugInEventTypeHandler getTypeHandler(PlugInEventTypeHandlerContext eventTypeContext) {
    ConfigurationEventTypeAxiom config;

    Object initValue = eventTypeContext.getTypeInitializer();
    if (initValue instanceof String) {
        String xml = (String) initValue;
        config = AxiomConfigurationParserXML.parse(xml);
    } else {
        config = (ConfigurationEventTypeAxiom) eventTypeContext.getTypeInitializer();
    }

    EventTypeMetadata metadata = EventTypeMetadata.createXMLType(config.getRootElementName(), true, false);
    AxiomXMLEventType eventType = new AxiomXMLEventType(metadata, eventTypeContext.getEventTypeId(), config);
    types.put(config.getRootElementName(), eventType);  // keep a handle on the types created to allow dynamic event reflection via bean factory
    return new AxiomEventTypeHandler(eventType);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:17,代码来源:AxiomEventRepresentation.java

示例6: VAERevisionProcessorDeclared

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
/**
 * Ctor.
 * @param revisionEventTypeName name
 * @param spec specification
 * @param statementStopService for stop handling
 * @param eventAdapterService for nested property handling
 */
public VAERevisionProcessorDeclared(String revisionEventTypeName, RevisionSpec spec, StatementStopService statementStopService, EventAdapterService eventAdapterService, EventTypeIdGenerator eventTypeIdGenerator)
{
    super(spec, revisionEventTypeName, eventAdapterService);

    // on statement stop, remove versions
    statementStopService.addSubscriber(new StatementStopCallback() {
        public void statementStopped()
        {
            statePerKey.clear();
        }
    });

    this.statePerKey = new HashMap<Object, RevisionStateDeclared>();
    this.baseEventType = spec.getBaseEventType();
    this.fullKeyGetters = PropertyUtility.getGetters(baseEventType, spec.getKeyPropertyNames());

    // sort non-key properties, removing keys
    groups = PropertyUtility.analyzeGroups(spec.getChangesetPropertyNames(), spec.getDeltaTypes(), spec.getDeltaNames());
    Map<String, RevisionPropertyTypeDesc> propertyDesc = createPropertyDescriptors(spec, groups);

    typeDescriptors = PropertyUtility.getPerType(groups, spec.getChangesetPropertyNames(), spec.getKeyPropertyNames());
    EventTypeMetadata metadata = EventTypeMetadata.createValueAdd(revisionEventTypeName, EventTypeMetadata.TypeClass.REVISION);
    revisionEventType = new RevisionEventType(metadata, eventTypeIdGenerator.getTypeId(revisionEventTypeName), propertyDesc, eventAdapterService);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:32,代码来源:VAERevisionProcessorDeclared.java

示例7: VAEVariantProcessor

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
/**
 * Ctor.
 * @param variantSpec specifies how to handle the disparate events
 */
public VAEVariantProcessor(VariantSpec variantSpec, EventTypeIdGenerator eventTypeIdGenerator, ConfigurationVariantStream config)
{
    this.variantSpec = variantSpec;

    VariantPropResolutionStrategy strategy;
    if (variantSpec.getTypeVariance() == ConfigurationVariantStream.TypeVariance.ANY)
    {
        strategy = new VariantPropResolutionStrategyAny(variantSpec);
    }
    else
    {
        strategy = new VariantPropResolutionStrategyDefault(variantSpec);
    }

    EventTypeMetadata metadata = EventTypeMetadata.createValueAdd(variantSpec.getVariantStreamName(), EventTypeMetadata.TypeClass.VARIANT);
    variantEventType = new VariantEventType(metadata, eventTypeIdGenerator.getTypeId(variantSpec.getVariantStreamName()), variantSpec, strategy, config);
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:22,代码来源:VAEVariantProcessor.java

示例8: testVariantTwoJoin

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
public void testVariantTwoJoin()
{
    String stmtText = "insert into Event_1 " +
                  "select intPrimitive - intBoxed as delta, intPrimitive * intBoxed as product " +
                    "from " + SupportBean.class.getName() + ".win:length(100) as s0," +
                              SupportBean_A.class.getName() + ".win:length(100) as s1 " +
                    " where s0.theString = s1.id";

    runAsserts(stmtText, null);

    // assert type metadata
    EventTypeSPI type = (EventTypeSPI) ((EPServiceProviderSPI)epService).getEventAdapterService().getExistsTypeByName("Event_1");
    assertEquals(null, type.getMetadata().getOptionalApplicationType());
    assertEquals(null, type.getMetadata().getOptionalSecondaryNames());
    assertEquals("Event_1", type.getMetadata().getPrimaryName());
    assertEquals("Event_1", type.getMetadata().getPublicName());
    assertEquals("Event_1", type.getName());
    assertEquals(EventTypeMetadata.TypeClass.STREAM, type.getMetadata().getTypeClass());
    assertEquals(false, type.getMetadata().isApplicationConfigured());
    assertEquals(false, type.getMetadata().isApplicationPreConfigured());
    assertEquals(false, type.getMetadata().isApplicationPreConfiguredStatic());
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:23,代码来源:TestInsertInto.java

示例9: testMetadata

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
public void testMetadata()
{
    EventTypeSPI type = (EventTypeSPI) ((EPServiceProviderSPI)epService).getEventAdapterService().getExistsTypeByName("MyObjectArrayEvent");
    assertEquals(EventTypeMetadata.ApplicationType.OBJECTARR, type.getMetadata().getOptionalApplicationType());
    assertEquals(null, type.getMetadata().getOptionalSecondaryNames());
    assertEquals("MyObjectArrayEvent", type.getMetadata().getPrimaryName());
    assertEquals("MyObjectArrayEvent", type.getMetadata().getPublicName());
    assertEquals("MyObjectArrayEvent", type.getName());
    assertEquals(EventTypeMetadata.TypeClass.APPLICATION, type.getMetadata().getTypeClass());
    assertEquals(true, type.getMetadata().isApplicationConfigured());
    assertEquals(true, type.getMetadata().isApplicationPreConfigured());
    assertEquals(true, type.getMetadata().isApplicationPreConfiguredStatic());

    EventType[] types = ((EPServiceProviderSPI)epService).getEventAdapterService().getAllTypes();
    assertEquals(1, types.length);

    EPAssertionUtil.assertEqualsAnyOrder(new Object[]{
            new EventPropertyDescriptor("myInt", Integer.class, null, false, false, false, false, false),
            new EventPropertyDescriptor("myString", String.class, null, false, false, false, false, false),
            new EventPropertyDescriptor("beanA", SupportBeanComplexProps.class, null, false, false, false, false, true),
    }, type.getPropertyDescriptors());
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:23,代码来源:TestObjectArrayEvent.java

示例10: testMetadata

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
public void testMetadata()
{
    EventTypeSPI type = (EventTypeSPI) ((EPServiceProviderSPI)epService).getEventAdapterService().getExistsTypeByName("myMapEvent");
    assertEquals(EventTypeMetadata.ApplicationType.MAP, type.getMetadata().getOptionalApplicationType());
    assertEquals(null, type.getMetadata().getOptionalSecondaryNames());
    assertEquals("myMapEvent", type.getMetadata().getPrimaryName());
    assertEquals("myMapEvent", type.getMetadata().getPublicName());
    assertEquals("myMapEvent", type.getName());
    assertEquals(EventTypeMetadata.TypeClass.APPLICATION, type.getMetadata().getTypeClass());
    assertEquals(true, type.getMetadata().isApplicationConfigured());
    assertEquals(true, type.getMetadata().isApplicationPreConfigured());
    assertEquals(true, type.getMetadata().isApplicationPreConfiguredStatic());

    EventType[] types = ((EPServiceProviderSPI)epService).getEventAdapterService().getAllTypes();
    assertEquals(1, types.length);

    EPAssertionUtil.assertEqualsAnyOrder(new Object[]{
            new EventPropertyDescriptor("myInt", Integer.class, null, false, false, false, false, false),
            new EventPropertyDescriptor("myString", String.class, null, false, false, false, false, false),
            new EventPropertyDescriptor("beanA", SupportBeanComplexProps.class, null, false, false, false, false, true),
    }, type.getPropertyDescriptors());
}
 
开发者ID:mobile-event-processing,项目名称:Asper,代码行数:23,代码来源:TestMapEvent.java

示例11: runAssertionModelPOJO

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
private void runAssertionModelPOJO(EPServiceProvider epService) throws Exception {
    EPStatement stmtCreateOne = epService.getEPAdministrator().createEPL("create schema SupportBeanOne as " + SupportBean_ST0.class.getName());
    assertEquals(SupportBean_ST0.class, stmtCreateOne.getEventType().getUnderlyingType());

    EPStatement stmtCreateTwo = epService.getEPAdministrator().createEPL("create schema SupportBeanTwo as " + SupportBean_ST0.class.getName());
    assertEquals(SupportBean_ST0.class, stmtCreateTwo.getEventType().getUnderlyingType());

    EPStatement stmtSelectOne = epService.getEPAdministrator().createEPL("select * from SupportBeanOne");
    assertEquals(SupportBean_ST0.class, stmtSelectOne.getEventType().getUnderlyingType());
    SupportUpdateListener listener = new SupportUpdateListener();
    stmtSelectOne.addListener(listener);

    EPStatement stmtSelectTwo = epService.getEPAdministrator().createEPL("select * from SupportBeanTwo");
    assertEquals(SupportBean_ST0.class, stmtSelectTwo.getEventType().getUnderlyingType());
    stmtSelectTwo.addListener(listener);

    epService.getEPRuntime().sendEvent(new SupportBean_ST0("E1", 2));
    EPAssertionUtil.assertPropsPerRow(listener.getNewDataListFlattened(), "id,p00".split(","), new Object[][]{{"E1", 2}, {"E1", 2}});

    // assert type information
    EventTypeSPI typeSPI = (EventTypeSPI) stmtSelectOne.getEventType();
    assertEquals(EventTypeMetadata.TypeClass.APPLICATION, typeSPI.getMetadata().getTypeClass());
    assertEquals(typeSPI.getName(), typeSPI.getMetadata().getPublicName());
    assertTrue(typeSPI.getMetadata().isApplicationConfigured());
    assertFalse(typeSPI.getMetadata().isApplicationPreConfiguredStatic());
    assertFalse(typeSPI.getMetadata().isApplicationPreConfigured());
    assertEquals(typeSPI.getName(), typeSPI.getMetadata().getPrimaryName());

    // test keyword
    tryInvalid(epService, "create schema MySchemaInvalid as com.mycompany.event.ABC",
            "Error starting statement: Event type or class named 'com.mycompany.event.ABC' was not found");
    tryInvalid(epService, "create schema MySchemaInvalid as com.mycompany.events.ABC",
            "Error starting statement: Event type or class named 'com.mycompany.events.ABC' was not found");
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:35,代码来源:ExecEPLSchema.java

示例12: runAssertionMetadata

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
private void runAssertionMetadata(EPServiceProvider epService) {
    // assert type metadata
    EventTypeSPI type = (EventTypeSPI) ((EPServiceProviderSPI) epService).getValueAddEventService().getValueAddProcessor("RevQuote").getValueAddEventType();
    assertEquals(null, type.getMetadata().getOptionalApplicationType());
    assertEquals(null, type.getMetadata().getOptionalSecondaryNames());
    assertEquals("RevisableQuote", type.getMetadata().getPrimaryName());
    assertEquals("RevisableQuote", type.getMetadata().getPublicName());
    assertEquals("RevisableQuote", type.getName());
    assertEquals(EventTypeMetadata.TypeClass.REVISION, type.getMetadata().getTypeClass());
    assertEquals(true, type.getMetadata().isApplicationConfigured());
    assertEquals(true, type.getMetadata().isApplicationPreConfigured());
    assertEquals(true, type.getMetadata().isApplicationPreConfiguredStatic());

    EventType[] valueAddTypes = ((EPServiceProviderSPI) epService).getValueAddEventService().getValueAddedTypes();
    assertEquals(1, valueAddTypes.length);
    assertSame(type, valueAddTypes[0]);

    EPAssertionUtil.assertEqualsAnyOrder(new Object[]{
        new EventPropertyDescriptor("k0", String.class, null, false, false, false, false, false),
        new EventPropertyDescriptor("p0", String.class, null, false, false, false, false, false),
        new EventPropertyDescriptor("p1", String.class, null, false, false, false, false, false),
        new EventPropertyDescriptor("p2", String.class, null, false, false, false, false, false),
        new EventPropertyDescriptor("p3", String.class, null, false, false, false, false, false),
        new EventPropertyDescriptor("p4", String.class, null, false, false, false, false, false),
        new EventPropertyDescriptor("p5", String.class, null, false, false, false, false, false)
    }, type.getPropertyDescriptors());
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:28,代码来源:ExecEventRevisionDeclared.java

示例13: getTableNameFromEventType

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
public static String getTableNameFromEventType(EventType type) {
    if (!(type instanceof EventTypeSPI)) {
        return null;
    }
    EventTypeSPI spi = (EventTypeSPI) type;
    if (spi.getMetadata().getTypeClass() == EventTypeMetadata.TypeClass.TABLE) {
        return spi.getMetadata().getPrimaryName();
    }
    return null;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:11,代码来源:TableServiceUtil.java

示例14: setupInsert

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
private TableOnMergeActionIns setupInsert(TableMetadata tableMetadata, InternalEventRouter internalEventRouter, int selectClauseNumber, OnTriggerMergeActionInsert desc, EventType triggeringEventType, String triggeringStreamName, StatementContext statementContext)
        throws ExprValidationException {

    // Compile insert-into info
    String streamName = desc.getOptionalStreamName() != null ? desc.getOptionalStreamName() : tableMetadata.getTableName();
    InsertIntoDesc insertIntoDesc = InsertIntoDesc.fromColumns(streamName, desc.getColumns());
    EventType insertIntoTargetType = streamName.equals(tableMetadata.getTableName()) ? tableMetadata.getInternalEventType() : null;

    // rewrite any wildcards to use "stream.wildcard"
    if (triggeringStreamName == null) {
        triggeringStreamName = UuidGenerator.generate();
    }
    List<SelectClauseElementCompiled> selectNoWildcard = NamedWindowOnMergeHelper.compileSelectNoWildcard(triggeringStreamName, desc.getSelectClauseCompiled());

    // Set up event types for select-clause evaluation: The first type does not contain anything as its the named window row which is not present for insert
    EventType dummyTypeNoProperties = new MapEventType(EventTypeMetadata.createAnonymous("merge_named_window_insert", EventTypeMetadata.ApplicationType.MAP), "merge_named_window_insert", 0, null, Collections.<String, Object>emptyMap(), null, null, null);
    EventType[] eventTypes = new EventType[]{dummyTypeNoProperties, triggeringEventType};
    String[] streamNames = new String[]{UuidGenerator.generate(), triggeringStreamName};
    StreamTypeService streamTypeService = new StreamTypeServiceImpl(eventTypes, streamNames, new boolean[1], statementContext.getEngineURI(), false, false);

    // Get select expr processor
    SelectExprEventTypeRegistry selectExprEventTypeRegistry = new SelectExprEventTypeRegistry(statementContext.getStatementName(), statementContext.getStatementEventTypeRef());
    ExprEvaluatorContextStatement exprEvaluatorContext = new ExprEvaluatorContextStatement(statementContext, false);
    SelectExprProcessorForge insertHelperForge = SelectExprProcessorFactory.getProcessor(Collections.singleton(selectClauseNumber),
            selectNoWildcard.toArray(new SelectClauseElementCompiled[selectNoWildcard.size()]), false, insertIntoDesc, insertIntoTargetType, null, streamTypeService,
            statementContext.getEventAdapterService(), statementContext.getStatementResultService(), statementContext.getValueAddEventService(), selectExprEventTypeRegistry,
            statementContext.getEngineImportService(), exprEvaluatorContext, statementContext.getVariableService(), statementContext.getTableService(), statementContext.getTimeProvider(), statementContext.getEngineURI(), statementContext.getStatementId(), statementContext.getStatementName(), statementContext.getAnnotations(), statementContext.getContextDescriptor(), statementContext.getConfigSnapshot(), null, statementContext.getNamedWindowMgmtService(), null, null,
            statementContext.getStatementExtensionServicesContext());
    SelectExprProcessor insertHelper = SelectExprProcessorCompiler.allocateSelectExprEvaluator(statementContext.getEventAdapterService(), insertHelperForge, statementContext.getEngineImportService(), TableOnMergeHelper.class, false, statementContext.getStatementName());
    ExprEvaluator filterEval = desc.getOptionalWhereClause() == null ? null : ExprNodeCompiler.allocateEvaluator(desc.getOptionalWhereClause().getForge(), statementContext.getEngineImportService(), this.getClass(), false, statementContext.getStatementName());

    InternalEventRouter routerToUser = streamName.equals(tableMetadata.getTableName()) ? null : internalEventRouter;
    boolean audit = AuditEnum.INSERT.getAudit(statementContext.getAnnotations()) != null;
    return new TableOnMergeActionIns(filterEval, insertHelper, routerToUser, statementContext.getEpStatementHandle(), statementContext.getInternalEventEngineRouteDest(), audit, tableMetadata.getRowFactory());
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:36,代码来源:TableOnMergeHelper.java

示例15: determineHasTableTypes

import com.espertech.esper.event.EventTypeMetadata; //导入依赖的package包/类
private boolean determineHasTableTypes() {
    for (EventType type : eventTypes) {
        if (type instanceof EventTypeSPI) {
            EventTypeSPI typeSPI = (EventTypeSPI) type;
            if (typeSPI.getMetadata().getTypeClass() == EventTypeMetadata.TypeClass.TABLE) {
                return true;
            }
        }
    }
    return false;
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:12,代码来源:StreamTypeServiceImpl.java


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