com.thinkaurelius.titan.graphdb.database.idassigner.placement

## Class SimplePartitionAssignment

- java.lang.Object
- - com.thinkaurelius.titan.graphdb.database.idassigner.placement.SimplePartitionAssignment

- All Implemented Interfaces:
    PartitionAssignment

      public class SimplePartitionAssignment
      extends Object
      implements PartitionAssignment

  Simple implementation of `PartitionAssignment`.
  Author:
    Matthias Broecheler (me@matthiasb.com)

- - ### Field Summary

    - ### Fields inherited from interface com.thinkaurelius.titan.graphdb.database.idassigner.placement.PartitionAssignment

      `EMPTY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimplePartitionAssignment()`
    `SimplePartitionAssignment(int id)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getPartitionID()` Returns the assigned partition id
    `void` | `setPartitionID(int id)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SimplePartitionAssignment

          public SimplePartitionAssignment()

    - #### SimplePartitionAssignment

          public SimplePartitionAssignment(int id)

  - ### Method Detail

    - #### setPartitionID

          public void setPartitionID(int id)

    - #### getPartitionID

          public int getPartitionID()

      Description copied from interface: `PartitionAssignment`
      Returns the assigned partition id
      Specified by:
        `getPartitionID` in interface `PartitionAssignment`
      Returns:

Copyright © 2012–2014. All rights reserved.