Module org.elasticsearch.server
Record Class SortedDvSingletonOrSet
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.blockloader.docvalues.tracking.SortedDvSingletonOrSet
public record SortedDvSingletonOrSet(TrackingSortedDocValues singleton, TrackingSortedSetDocValues set)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSortedDvSingletonOrSet(TrackingSortedDocValues singleton, TrackingSortedSetDocValues set) Creates an instance of aSortedDvSingletonOrSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.forceSet()static SortedDvSingletonOrSetget(CircuitBreaker breaker, ByteSizeValue size, org.apache.lucene.index.LeafReaderContext context, String fieldName) Atomically load theSortedDvSingletonOrSet.final inthashCode()Returns a hash code value for this object.set()Returns the value of thesetrecord component.Returns the value of thesingletonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SortedDvSingletonOrSet
public SortedDvSingletonOrSet(@Nullable TrackingSortedDocValues singleton, @Nullable TrackingSortedSetDocValues set) Creates an instance of aSortedDvSingletonOrSetrecord class.- Parameters:
singleton- the value for thesingletonrecord componentset- the value for thesetrecord component
-
-
Method Details
-
get
public static SortedDvSingletonOrSet get(CircuitBreaker breaker, ByteSizeValue size, org.apache.lucene.index.LeafReaderContext context, String fieldName) throws IOException Atomically load theSortedDvSingletonOrSet.- Throws:
IOException
-
forceSingle
-
forceSet
-
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
-
set
Returns the value of thesetrecord component.- Returns:
- the value of the
setrecord component
-