org.wso2.siddhi.core.event.Event.toString()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中org.wso2.siddhi.core.event.Event.toString()方法的一些代码示例,展示了Event.toString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.toString()方法的具体详情如下:
包路径:org.wso2.siddhi.core.event.Event
类名称:Event
方法名:toString

Event.toString介绍

暂无

代码示例

代码示例来源:origin: org.wso2.extension.siddhi.map.text/siddhi-map-text

@Override
public void mapAndSend(Event event, OptionHolder optionHolder, Map<String,
    TemplateBuilder> payloadTemplateBuilderMap, SinkListener sinkListener) {
  if (payloadTemplateBuilderMap != null) { //custom mapping case
    if (event != null) {
      try {
        sinkListener.publish(payloadTemplateBuilderMap.get(payloadTemplateBuilderMap.keySet().iterator()
            .next()).build(event));
      } catch (NoSuchAttributeException e) {
        log.error("Malformed event " + event.toString() + ". Hence proceed with null values" +
            " in the stream " + streamID + " of siddhi text output mapper.");
        //drop the event
      }
    }
  } else { //default mapping case
    if (event != null) {
      sinkListener.publish(constructDefaultMapping(event, false));
    }
  }
}

代码示例来源:origin: org.wso2.extension.siddhi.map.csv/siddhi-map-csv

+ "event '" + event.toString() + "' when check the event data in "
+ "the stream '" + streamDefinition.getId()
+ "' of siddhi CSV input mapper.");

代码示例来源:origin: org.wso2.extension.siddhi.map.csv/siddhi-map-csv

+ "event '" + event.toString() + "' when check the event data in "
+ "the stream '" + streamDefinition.getId()
+ "' of siddhi CSV input mapper.");

相关文章