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>
,JSONWriter.Writable
- Enclosing class:
- DocRouter
public static class DocRouter.Range extends Object implements JSONWriter.Writable, Comparable<DocRouter.Range>
-
-
Constructor Summary
Constructors Constructor Description Range(int min, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DocRouter.Range that)
boolean
equals(Object obj)
int
hashCode()
boolean
includes(int hash)
boolean
isSubsetOf(DocRouter.Range superset)
boolean
overlaps(DocRouter.Range other)
String
toString()
void
write(JSONWriter writer)
-
-
-
Method Detail
-
includes
public boolean includes(int hash)
-
isSubsetOf
public boolean isSubsetOf(DocRouter.Range superset)
-
overlaps
public boolean overlaps(DocRouter.Range other)
-
write
public void write(JSONWriter writer)
- Specified by:
write
in interfaceJSONWriter.Writable
-
compareTo
public int compareTo(DocRouter.Range that)
- Specified by:
compareTo
in interfaceComparable<DocRouter.Range>
-
-