java.lang.Object
org.elasticsearch.index.shard.ShardLongFieldRange
- All Implemented Interfaces:
- Writeable
Class representing an (inclusive) range of 
long values in a field in a single shard.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ShardLongFieldRangeSentinel value indicating an empty range, for instance because the field is missing or has no values.static final ShardLongFieldRangeSentinel value indicating the actual range is unknown, for instance because more docs may be added in future.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanlonggetMax()longgetMin()inthashCode()static ShardLongFieldRangeof(long min, long max) Construct a newShardLongFieldRangewith the given (inclusive) minimum and maximum.static ShardLongFieldRangereadFrom(StreamInput in) toString()voidwriteTo(StreamOutput out) Write this into the StreamOutput.
- 
Field Details- 
EMPTYSentinel value indicating an empty range, for instance because the field is missing or has no values.
- 
UNKNOWNSentinel value indicating the actual range is unknown, for instance because more docs may be added in future.
 
- 
- 
Method Details- 
ofConstruct a newShardLongFieldRangewith the given (inclusive) minimum and maximum.
- 
getMinpublic long getMin()- Returns:
- the (inclusive) minimum of this range.
 
- 
getMaxpublic long getMax()- Returns:
- the (inclusive) maximum of this range.
 
- 
toString
- 
readFrom- Throws:
- IOException
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
equals
- 
hashCodepublic int hashCode()
 
-