Package eu.stratosphere.core.memory

Examples of eu.stratosphere.core.memory.DataOutputView


   *
   * @param delegate null -OR- the delegate on which to call collect() by the newly created collector
   * @return a new {@link WorksetUpdateOutputCollector}
   */
  protected Collector<OT> createWorksetUpdateOutputCollector(Collector<OT> delegate) {
    DataOutputView outputView = worksetBackChannel.getWriteEnd();
    TypeSerializer<OT> serializer = getOutputSerializer();
    return new WorksetUpdateOutputCollector<OT>(outputView, serializer, delegate);
  }
View Full Code Here


    @Override
    public void run() {
      try {
        for (int n = 0; n < NUM_ITERATIONS; n++) {
          DataOutputView writeEnd = backChannel.getWriteEnd();
          readInputFromDataChannel();
          Thread.sleep(random.nextInt(10));
          DataInputView inputView = Mockito.mock(DataInputView.class);
          actionLog.add("tail writes in iteration " + n);
          writeEnd.write(inputView, 1);
          backChannel.notifyOfEndOfSuperstep();
        }
      } catch (Exception e) {
        throw new RuntimeException(e);
      }
View Full Code Here

TOP

Related Classes of eu.stratosphere.core.memory.DataOutputView

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.