org.apache.solr.cloud.rule

## Class ReplicaAssigner.Position

- java.lang.Object
- - org.apache.solr.cloud.rule.ReplicaAssigner.Position

- All Implemented Interfaces:
    Comparable<ReplicaAssigner.Position>
  Enclosing class:
    ReplicaAssigner

      public static class ReplicaAssigner.Position
      extends Object
      implements Comparable<ReplicaAssigner.Position>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `int` | `index`
    `String` | `shard`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Position(String shard, int replicaIdx)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(ReplicaAssigner.Position that)`
    `String` | `toString()`

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

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

- - ### Field Detail

    - #### shard

          public final String shard

    - #### index

          public final int index

  - ### Constructor Detail

    - #### Position

          public Position(String shard,
                          int replicaIdx)

  - ### Method Detail

    - #### compareTo

          public int compareTo(ReplicaAssigner.Position that)

      Specified by:
        `compareTo` in interface `Comparable<ReplicaAssigner.Position>`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.