Examples of OutputChannel


Examples of caltrop.interpreter.OutputChannel

        for (int i = 0; i < outputExpressions.length; i++) {
            final OutputExpression outputExpression = outputExpressions[i];
            final Expression[] expressions = outputExpression.getExpressions();
            final Expression repeatExpr = outputExpression.getRepeatExpr();

            final OutputChannel channel = ((OutputPort) (outputPortMap
                    .get(outputExpression.getPortname()))).getChannel(0);

            // FIXME: handle multiports
            if (repeatExpr != null) {
                int repeatValue = context.intValue(eval.evaluate(repeatExpr));
                List[] lists = new List[expressions.length];

                for (int j = 0; j < lists.length; j++) {
                    lists[j] = context.getList(eval.evaluate(expressions[j]));
                }

                for (int j = 0; j < repeatValue; j++) {
                    for (int k = 0; k < expressions.length; k++) {
                        channel.put(lists[k].get(j));
                    }
                }
            } else {
                for (int j = 0; j < expressions.length; j++) {
                    channel.put(eval.evaluate(expressions[j]));
                }
            }
        }
    }
View Full Code Here

Examples of com.tdunning.plume.local.lazy.MSCR.OutputChannel

  protected void reduce(final PlumeObject arg0, java.lang.Iterable<PlumeObject> values,
      Reducer<PlumeObject,PlumeObject,NullWritable,NullWritable>.Context arg2)
    throws IOException, InterruptedException {
   
    PCollection col  = mscr.getChannelByNumber().get(arg0.sourceId);
    OutputChannel oC = mscr.getOutputChannels().get(col);
    if(oC.reducer != null) {
      // apply reducer
      ParallelDo pDo = oC.reducer;
      DoFn reducer = pDo.getFunction(); // TODO how to check / report this
      List<WritableComparable> vals = Lists.newArrayList();
View Full Code Here

Examples of com.tdunning.plume.local.lazy.MSCR.OutputChannel

  protected void reduce(final PlumeObject arg0, java.lang.Iterable<PlumeObject> values,
      Reducer<PlumeObject, PlumeObject, PlumeObject, PlumeObject>.Context context)
    throws IOException, InterruptedException {

    PCollection col  = mscr.getChannelByNumber().get(arg0.sourceId);
    OutputChannel oC = mscr.getOutputChannels().get(col);
    if(oC.combiner != null) {
      // Apply combiner function for this channel
      List<WritableComparable> vals = Lists.newArrayList();
      for(PlumeObject val: values) {
        vals.add(val.obj);
View Full Code Here

Examples of eu.stratosphere.runtime.io.channels.OutputChannel

      ChannelDeploymentDescriptor channelDescriptor = descriptor.getChannelDescriptor(i);

      ChannelID id = channelDescriptor.getOutputChannelID();
      ChannelID connectedId = channelDescriptor.getInputChannelID();

      this.channels[i] = new OutputChannel(this, i, id, connectedId, getChannelType());
    }
  }
View Full Code Here

Examples of eu.stratosphere.runtime.io.channels.OutputChannel

      if (channel.isInputChannel()) {
        throw new IOException("Local receiver " + receiver + " of backward event is not an output channel.");
      }

      OutputChannel outputChannel = (OutputChannel) channel;
      outputChannel.queueEnvelope(envelope);
    }
    else if (receiverList.hasRemoteReceiver()) {
      RemoteReceiver remoteReceiver = receiverList.getRemoteReceiver();

      // Generate sender hint before sending the first envelope over the network
View Full Code Here

Examples of org.apache.flink.runtime.io.network.channels.OutputChannel

      if (channel.isInputChannel()) {
        throw new IOException("Local receiver " + receiver + " of backward event is not an output channel.");
      }

      OutputChannel outputChannel = (OutputChannel) channel;
      outputChannel.queueEnvelope(envelope);
    }
    else if (receiverList.hasRemoteReceiver()) {
      RemoteReceiver remoteReceiver = receiverList.getRemoteReceiver();

      // Generate sender hint before sending the first envelope over the network
View Full Code Here

Examples of org.apache.flink.runtime.io.network.channels.OutputChannel

      ChannelDeploymentDescriptor channelDescriptor = channelDescr.get(i);

      ChannelID id = channelDescriptor.getOutputChannelID();
      ChannelID connectedId = channelDescriptor.getInputChannelID();

      this.channels[i] = new OutputChannel(this, i, id, connectedId, getChannelType());
    }
  }
View Full Code Here

Examples of org.apache.geronimo.corba.channel.OutputChannel

    RequestID requestID = getNextRequestID();

    inv.setRequestID(requestID);

    // acquire output channel token
    OutputChannel outputChannel = transport.getOutputChannel();
    GIOPOutputStream out = new GIOPOutputStream(orb, outputChannel, version);

    // this will write a GIOP message header
    out.beginGIOPStream(MsgType_1_1._Request, requestID);
View Full Code Here

Examples of zephyropen.socket.OutputChannel

    return false;
  }

  /** Send this command to the output channel */
  public void send() {
    OutputChannel outputChannel = constants.getOutputChannel();
    if (outputChannel != null)
      outputChannel.write(this);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.