Module org.elasticsearch.server
Record Class TrackingBinaryDocValues
java.lang.Object
java.lang.Record
org.elasticsearch.index.mapper.blockloader.docvalues.tracking.TrackingBinaryDocValues
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
public record TrackingBinaryDocValues(CircuitBreaker breaker, org.apache.lucene.index.BinaryDocValues docValues)
extends Record
implements Releasable
Wraps a
BinaryDocValues, reserving some space in a CircuitBreaker
while it is live.-
Constructor Summary
ConstructorsConstructorDescriptionTrackingBinaryDocValues(CircuitBreaker breaker, org.apache.lucene.index.BinaryDocValues docValues) Creates an instance of aTrackingBinaryDocValuesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbreaker()Returns the value of thebreakerrecord component.voidclose()org.apache.lucene.index.BinaryDocValuesReturns the value of thedocValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.static TrackingBinaryDocValuesget(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context, String fieldName) static TrackingBinaryDocValuesget(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context, org.apache.lucene.util.IOFunction<org.apache.lucene.index.LeafReaderContext, org.apache.lucene.index.BinaryDocValues> supplier) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrackingBinaryDocValues
public TrackingBinaryDocValues(CircuitBreaker breaker, org.apache.lucene.index.BinaryDocValues docValues) Creates an instance of aTrackingBinaryDocValuesrecord class.- Parameters:
breaker- the value for thebreakerrecord componentdocValues- the value for thedocValuesrecord component
-
-
Method Details
-
get
public static TrackingBinaryDocValues get(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context, String fieldName) throws IOException - Throws:
IOException
-
get
public static TrackingBinaryDocValues get(CircuitBreaker breaker, org.apache.lucene.index.LeafReaderContext context, org.apache.lucene.util.IOFunction<org.apache.lucene.index.LeafReaderContext, org.apache.lucene.index.BinaryDocValues> supplier) throws IOException- Throws:
IOException
-
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.BinaryDocValues docValues()Returns the value of thedocValuesrecord component.- Returns:
- the value of the
docValuesrecord component
-