Examples of GateID


Examples of eu.stratosphere.runtime.io.gates.GateID

  private static class MockInputGate extends InputGate<Record> {
   
    private MutableObjectIterator<Record> it;

    public MockInputGate(int id, MutableObjectIterator<Record> it) {
      super(new JobID(), new GateID(), id);
      this.it = it;
    }
View Full Code Here

Examples of eu.stratosphere.runtime.io.gates.GateID

    private RecordDeserializer<Record> deserializer;

    private Record record;

    public MockOutputGate(int index, List<Record> outList) {
      super(new JobID(), new GateID(), index);
      this.out = outList;
      this.deserializer = new AdaptiveSpanningRecordDeserializer<Record>();
      this.record = new Record();
    }
View Full Code Here

Examples of eu.stratosphere.runtime.io.gates.GateID

    final ExecutionVertex duplicatedVertex = new ExecutionVertex(newVertexID, this.executionGraph,
      this.groupVertex, this.outputGates.length, this.inputGates.length);

    // Duplicate gates
    for (int i = 0; i < this.outputGates.length; ++i) {
      duplicatedVertex.outputGates[i] = new ExecutionGate(new GateID(), duplicatedVertex,
        this.outputGates[i].getGroupEdge(), false);
    }

    for (int i = 0; i < this.inputGates.length; ++i) {
      duplicatedVertex.inputGates[i] = new ExecutionGate(new GateID(), duplicatedVertex,
        this.inputGates[i].getGroupEdge(), true);
    }

    // TODO set new profiling record with new vertex id
    duplicatedVertex.setAllocatedResource(this.allocatedResource.get());
View Full Code Here

Examples of eu.stratosphere.runtime.io.gates.GateID

  /**
   * Default constructor for serialization/deserialization.
   */
  public GateDeploymentDescriptor() {

    this.gateID = new GateID();
    this.channelType = null;
    this.channels = new ArrayList<ChannelDeploymentDescriptor>();
  }
View Full Code Here

Examples of eu.stratosphere.runtime.io.gates.GateID

        // Connect the corresponding group vertices and copy the user settings from the job edge
        final ExecutionGroupEdge groupEdge = sgv.wireTo(tgv, edge.getIndexOfInputGate(), i, channelType,
          userDefinedChannelType,distributionPattern);

        final ExecutionGate outputGate = new ExecutionGate(new GateID(), sev, groupEdge, false);
        sev.insertOutputGate(i, outputGate);
        final ExecutionGate inputGate = new ExecutionGate(new GateID(), tev, groupEdge, true);
        tev.insertInputGate(edge.getIndexOfInputGate(), inputGate);
      }
    }
  }
View Full Code Here

Examples of eu.stratosphere.runtime.io.gates.GateID

    return this.unboundInputGateIDs.poll();
  }

  @Override
  public OutputGate createAndRegisterOutputGate() {
    OutputGate gate = new OutputGate(getJobID(), new GateID(), getNumberOfOutputGates());
    this.outputGates.add(gate);

    return gate;
  }
View Full Code Here

Examples of eu.stratosphere.runtime.io.gates.GateID

    changeExecutionState(ExecutionState.FINISHED, null);
  }

  @Override
  public <T extends IOReadableWritable> InputGate<T> createAndRegisterInputGate() {
    InputGate<T> gate = new InputGate<T>(getJobID(), new GateID(), getNumberOfInputGates());
    this.inputGates.add(gate);

    return gate;
  }
View Full Code Here

Examples of eu.stratosphere.runtime.io.gates.GateID

   * Tests the constructor of the {@link GateDeploymentDescriptor} class with valid arguments.
   */
  @Test
  public void testConstructorWithValidArguments() {

    final GateID gateID = new GateID();
    final ChannelType channelType = ChannelType.IN_MEMORY;
    final List<ChannelDeploymentDescriptor> channels = new ArrayList<ChannelDeploymentDescriptor>(0);

    final GateDeploymentDescriptor gdd = new GateDeploymentDescriptor(gateID, channelType, channels);

View Full Code Here

Examples of eu.stratosphere.runtime.io.gates.GateID

   * Tests the constructor of the {@link GateDeploymentDescriptor} class with valid arguments.
   */
  @Test
  public void testConstructorWithInvalidArguments() {

    final GateID gateID = new GateID();
    final ChannelType channelType = ChannelType.IN_MEMORY;
    final List<ChannelDeploymentDescriptor> channels = new ArrayList<ChannelDeploymentDescriptor>(0);

    boolean firstExceptionCaught = false;
    boolean secondExceptionCaught = false;
View Full Code Here

Examples of eu.stratosphere.runtime.io.gates.GateID

   * Tests the serialization/deserialization of the {@link GateDeploymentDescriptor} class.
   */
  @Test
  public void testSerialization() {

    final GateID gateID = new GateID();
    final ChannelType channelType = ChannelType.IN_MEMORY;
    final List<ChannelDeploymentDescriptor> channels = new ArrayList<ChannelDeploymentDescriptor>(0);
    final ChannelDeploymentDescriptor cdd = new ChannelDeploymentDescriptor(new ChannelID(), new ChannelID());
    channels.add(cdd);

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.