Module org.apache.lucene.core
Package org.apache.lucene.index
Record Class BufferedUpdatesStream.ApplyDeletesResult
java.lang.Object
java.lang.Record
org.apache.lucene.index.BufferedUpdatesStream.ApplyDeletesResult
- Record Components:
anyDeletes
- True if any actual deletes took place:allDeleted
- If non-null, contains segments that are 100% deleted
- Enclosing class:
BufferedUpdatesStream
static record BufferedUpdatesStream.ApplyDeletesResult(boolean anyDeletes, List<SegmentCommitInfo> allDeleted)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<SegmentCommitInfo> The field for theallDeleted
record component.private final boolean
The field for theanyDeletes
record component. -
Constructor Summary
ConstructorsConstructorDescriptionApplyDeletesResult
(boolean anyDeletes, List<SegmentCommitInfo> allDeleted) Creates an instance of aApplyDeletesResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallDeleted
record component.boolean
Returns the value of theanyDeletes
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
anyDeletes
private final boolean anyDeletesThe field for theanyDeletes
record component. -
allDeleted
The field for theallDeleted
record component.
-
-
Constructor Details
-
ApplyDeletesResult
ApplyDeletesResult(boolean anyDeletes, List<SegmentCommitInfo> allDeleted) Creates an instance of aApplyDeletesResult
record class.- Parameters:
anyDeletes
- the value for theanyDeletes
record componentallDeleted
- the value for theallDeleted
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
anyDeletes
public boolean anyDeletes()Returns the value of theanyDeletes
record component.- Returns:
- the value of the
anyDeletes
record component
-
allDeleted
Returns the value of theallDeleted
record component.- Returns:
- the value of the
allDeleted
record component
-