Module org.elasticsearch.server
Record Class TrackingSortedNumericDocValues
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.blockloader.docvalues.tracking.TrackingSortedNumericDocValues
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
public record TrackingSortedNumericDocValues(CircuitBreaker breaker, org.apache.lucene.index.SortedNumericDocValues docValues)
extends Record
implements Releasable
Wraps a
SortedNumericDocValues, reserving some space in a CircuitBreaker
while it is live.-
Constructor Summary
ConstructorsConstructorDescriptionTrackingSortedNumericDocValues(CircuitBreaker breaker, org.apache.lucene.index.SortedNumericDocValues docValues) Creates an instance of aTrackingSortedNumericDocValuesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbreaker()Returns the value of thebreakerrecord component.voidclose()org.apache.lucene.index.SortedNumericDocValuesReturns the value of thedocValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrackingSortedNumericDocValues
public TrackingSortedNumericDocValues(CircuitBreaker breaker, org.apache.lucene.index.SortedNumericDocValues docValues) Creates an instance of aTrackingSortedNumericDocValuesrecord class.- Parameters:
breaker- the value for thebreakerrecord componentdocValues- the value for thedocValuesrecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
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). -
breaker
Returns the value of thebreakerrecord component.- Returns:
- the value of the
breakerrecord component
-
docValues
public org.apache.lucene.index.SortedNumericDocValues docValues()Returns the value of thedocValuesrecord component.- Returns:
- the value of the
docValuesrecord component
-