Package org.apache.solr.common.cloud
Class DocRouter.Range
java.lang.Object
org.apache.solr.common.cloud.DocRouter.Range
- All Implemented Interfaces:
Comparable<DocRouter.Range>,org.noggit.JSONWriter.Writable
- Enclosing class:
DocRouter
public static class DocRouter.Range
extends Object
implements org.noggit.JSONWriter.Writable, Comparable<DocRouter.Range>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(DocRouter.Range that) booleaninthashCode()booleanincludes(int hash) booleanisSubsetOf(DocRouter.Range superset) intmax()intmin()booleanoverlaps(DocRouter.Range other) toString()voidwrite(org.noggit.JSONWriter writer)
-
Field Details
-
min
public int min -
max
public int max
-
-
Constructor Details
-
Range
public Range(int min, int max)
-
-
Method Details
-
min
public int min() -
max
public int max() -
includes
public boolean includes(int hash) -
isSubsetOf
-
overlaps
-
toString
-
hashCode
public int hashCode() -
equals
-
write
public void write(org.noggit.JSONWriter writer) - Specified by:
writein interfaceorg.noggit.JSONWriter.Writable
-
compareTo
- Specified by:
compareToin interfaceComparable<DocRouter.Range>
-