Module org.elasticsearch.server
Record Class NumericDvSingletonOrSorted
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.blockloader.docvalues.tracking.NumericDvSingletonOrSorted
public record NumericDvSingletonOrSorted(TrackingNumericDocValues singleton, TrackingSortedNumericDocValues sorted)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNumericDvSingletonOrSorted(TrackingNumericDocValues singleton, TrackingSortedNumericDocValues sorted) Creates an instance of aNumericDvSingletonOrSortedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Get the sorted variant, wrapping singleton back to sorted if needed.static NumericDvSingletonOrSortedget(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context, String fieldName) Atomically load theNumericDvSingletonOrSorted.final inthashCode()Returns a hash code value for this object.Returns the value of thesingletonrecord component.sorted()Returns the value of thesortedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NumericDvSingletonOrSorted
public NumericDvSingletonOrSorted(@Nullable TrackingNumericDocValues singleton, @Nullable TrackingSortedNumericDocValues sorted) Creates an instance of aNumericDvSingletonOrSortedrecord class.- Parameters:
singleton- the value for thesingletonrecord componentsorted- the value for thesortedrecord component
-
-
Method Details
-
get
public static NumericDvSingletonOrSorted get(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context, String fieldName) throws IOException Atomically load theNumericDvSingletonOrSorted.- Throws:
IOException
-
forceSorted
Get the sorted variant, wrapping singleton back to sorted if needed. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
singleton
Returns the value of thesingletonrecord component.- Returns:
- the value of the
singletonrecord component
-
sorted
Returns the value of thesortedrecord component.- Returns:
- the value of the
sortedrecord component
-