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
-
Constructor Summary
ConstructorDescriptionFlushResult
(boolean flushPerformed, long generation) Creates an instance of aFlushResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of theflushPerformed
record component.long
Returns the value of thegeneration
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
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 aFlushResult
record class.- Parameters:
flushPerformed
- the value for theflushPerformed
record componentgeneration
- the value for thegeneration
record 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 theflushPerformed
record component.- Returns:
- the value of the
flushPerformed
record component
-
generation
public long generation()Returns the value of thegeneration
record component.- Returns:
- the value of the
generation
record component
-