Class NodeSpec

java.lang.Object
com.yahoo.vespa.model.search.NodeSpec

public class NodeSpec extends Object
Represents the group and partition id of a search interface node.
Author:
geirst
  • Constructor Summary

    Constructors
    Constructor
    Description
    NodeSpec(int groupIndex, int partitionId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an index of the group of this node.
    int
    Returns the partition id of this, which is also a contiguous integer id, not necessarily the same as the group id assigned by the application/node repo.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NodeSpec

      public NodeSpec(int groupIndex, int partitionId)
  • Method Details

    • groupIndex

      public int groupIndex()
      Returns an index of the group of this node. This is a 0-base continuous integer id, not necessarily the same as the group id assigned by the application/node repo. This index is called a "row id" in some places in Vespa for historical reasons.
    • partitionId

      public int partitionId()
      Returns the partition id of this, which is also a contiguous integer id, not necessarily the same as the group id assigned by the application/node repo.