Module org.elasticsearch.server
Package org.elasticsearch.index.engine
Record Class Engine.FlushResult
java.lang.Object
java.lang.Record
org.elasticsearch.index.engine.Engine.FlushResult
- Enclosing class:
Engine
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFlushResult(boolean flushPerformed, long generation) Creates an instance of aFlushResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theflushPerformedrecord component.longReturns the value of thegenerationrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
UNKNOWN_GENERATION
public static final long UNKNOWN_GENERATION- See Also:
-
NO_FLUSH
-
-
Constructor Details
-
FlushResult
public FlushResult(boolean flushPerformed, long generation) Creates an instance of aFlushResultrecord class.- Parameters:
flushPerformed- the value for theflushPerformedrecord componentgeneration- the value for thegenerationrecord component
-
-
Method Details
-
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 with '=='. -
flushPerformed
public boolean flushPerformed()Returns the value of theflushPerformedrecord component.- Returns:
- the value of the
flushPerformedrecord component
-
generation
public long generation()Returns the value of thegenerationrecord component.- Returns:
- the value of the
generationrecord component
-