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>,HashRange,org.noggit.JSONWriter.Writable
- Enclosing class:
- DocRouter
public static class DocRouter.Range extends Object implements org.noggit.JSONWriter.Writable, Comparable<DocRouter.Range>, HashRange
-
-
Constructor Summary
Constructors Constructor Description Range(int min, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DocRouter.Range that)booleanequals(Object obj)inthashCode()booleanincludes(int hash)Check if a given hash falls in this rangebooleanisSubsetOf(DocRouter.Range superset)intmax()maximum value (inclusive)intmin()minimum value (inclusive)booleanoverlaps(DocRouter.Range other)StringtoString()voidwrite(org.noggit.JSONWriter writer)
-
-
-
Method Detail
-
min
public int min()
Description copied from interface:HashRangeminimum value (inclusive)
-
max
public int max()
Description copied from interface:HashRangemaximum value (inclusive)
-
includes
public boolean includes(int hash)
Description copied from interface:HashRangeCheck if a given hash falls in this range
-
isSubsetOf
public boolean isSubsetOf(DocRouter.Range superset)
-
overlaps
public boolean overlaps(DocRouter.Range other)
-
write
public void write(org.noggit.JSONWriter writer)
- Specified by:
writein interfaceorg.noggit.JSONWriter.Writable
-
compareTo
public int compareTo(DocRouter.Range that)
- Specified by:
compareToin interfaceComparable<DocRouter.Range>
-
-