Package stream.io

Examples of stream.io.Sink


          .compileEPL(epStatement);
      final EPStatement stmt = epAdmin.create(stmtModel);
      final String stmtName = Integer.toString(epStatement.hashCode());
      // TODO fast hack disabling queues, since they are currently not
      // supported by Streams-Storm.
      final Sink sink = _sinksMap.get(_statementSinksMap.get(stmtName));
      final String[] propertyNames = stmt.getEventType()
          .getPropertyNames();
      if (sink != null) {
        final EsperStatementSubscriber subscriber = new EsperStatementSubscriber(
            sink, propertyNames);
View Full Code Here


      // If an output sink was defined, then we add a subscriber.
      if (epStatement.getOutput() != null) {
        final String[] sinkNamesList = epStatement.getOutput();
        final List<Sink> sinksList = new ArrayList<Sink>();
        for (String sinkName : sinkNamesList) {
          final Sink sink = _sinksMap.get(sinkName);

          if (sink == null) {
            _log.warn(
                "Statement {} declares the sink {} "
                    + "but the corresponding Esper processor does not.",
View Full Code Here

          .create(stmtModel) : epAdmin.create(stmtModel, stmtName));

      // If an output sink was defined, then we add a subscriber.
      if (epStatement.getOutput() != null) {
        final String sinkName = epStatement.getOutput();
        final Sink sink = _sinksMap.get(sinkName);
        final String[] propertyNames = stmt.getEventType()
            .getPropertyNames();

        if (sink == null) {
          _log.warn(
              "Statement {} declares the sink {} "
                  + "but the corresponding Esper processor does not.",
              epStatement, sinkName);
        } else {
          final EsperStatementSubscriber subscriber = new EsperStatementSubscriber(
              sink, propertyNames);
          _log.info("Adding subscriber {} to statement {}", sink.getId(),
              epStatement);
          stmt.setSubscriber(subscriber);
        }
      }
    }
View Full Code Here

      // Compute the hash value of the statement.
      // We use this to reference the statement's sink, if it declares
      // any.
      final String stmtName = Integer.toString(epStatement.hashCode());

      final Sink sink = _sinksMap.get(_statementSinksMap.get(stmtName));
      final String[] propertyNames = stmt.getEventType()
          .getPropertyNames();

      // Only add a subscriber, if the statement delcares to send its
      // output to a queue.
View Full Code Here

TOP

Related Classes of stream.io.Sink

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.