Package org.elasticsearch.index.shard
Class ShardLongFieldRange
java.lang.Object
org.elasticsearch.index.shard.ShardLongFieldRange
- All Implemented Interfaces:
Writeable
public class ShardLongFieldRange extends java.lang.Object implements Writeable
Class representing an (inclusive) range of
long
values in a field in a single shard.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields Modifier and Type Field Description static ShardLongFieldRange
EMPTY
Sentinel value indicating an empty range, for instance because the field is missing or has no values.static Version
LONG_FIELD_RANGE_VERSION_INTRODUCED
static ShardLongFieldRange
UNKNOWN
Sentinel value indicating the actual range is unknown, for instance because more docs may be added in future. -
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
getMax()
long
getMin()
int
hashCode()
static ShardLongFieldRange
of(long min, long max)
Construct a newShardLongFieldRange
with the given (inclusive) minimum and maximum.static ShardLongFieldRange
readFrom(StreamInput in)
java.lang.String
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
LONG_FIELD_RANGE_VERSION_INTRODUCED
-
EMPTY
Sentinel value indicating an empty range, for instance because the field is missing or has no values. -
UNKNOWN
Sentinel value indicating the actual range is unknown, for instance because more docs may be added in future.
-
-
Method Details
-
of
Construct a newShardLongFieldRange
with the given (inclusive) minimum and maximum. -
getMin
public long getMin()- Returns:
- the (inclusive) minimum of this range.
-
getMax
public long getMax()- Returns:
- the (inclusive) maximum of this range.
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
readFrom
- Throws:
java.io.IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-