Module org.elasticsearch.compute
Package org.elasticsearch.compute.data
Class LongRangeBlockBuilder.LongRange
java.lang.Object
org.elasticsearch.compute.data.LongRangeBlockBuilder.LongRange
- All Implemented Interfaces:
Comparable<LongRangeBlockBuilder.LongRange>,GenericNamedWriteable,NamedWriteable,VersionedNamedWriteable,Writeable
- Enclosing class:
LongRangeBlockBuilder
public static final class LongRangeBlockBuilder.LongRange
extends Object
implements GenericNamedWriteable, Comparable<LongRangeBlockBuilder.LongRange>
A mutable container for a half-open
[from, to) long range.
Instances act both as a value type (used for literals and serialization) and as a reusable
scratch passed to LongRangeBlock.getLongRange(int, LongRange).
The accessor mutates the scratch in place and returns it,
so any reference held by the caller is only valid until the next call.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
ENTRY
-
-
Constructor Details
-
LongRange
public LongRange() -
LongRange
public LongRange(long from, long to) -
LongRange
- Throws:
IOException
-
-
Method Details
-
from
public long from() -
to
public long to() -
reset
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<LongRangeBlockBuilder.LongRange>
-