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 theallDeletedrecord component.private final booleanThe field for theanyDeletesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionApplyDeletesResult(boolean anyDeletes, List<SegmentCommitInfo> allDeleted) Creates an instance of aApplyDeletesResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallDeletedrecord component.booleanReturns the value of theanyDeletesrecord 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.
-
Field Details
-
anyDeletes
private final boolean anyDeletesThe field for theanyDeletesrecord component. -
allDeleted
The field for theallDeletedrecord component.
-
-
Constructor Details
-
ApplyDeletesResult
ApplyDeletesResult(boolean anyDeletes, List<SegmentCommitInfo> allDeleted) Creates an instance of aApplyDeletesResultrecord class.- Parameters:
anyDeletes- the value for theanyDeletesrecord componentallDeleted- the value for theallDeletedrecord 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 theanyDeletesrecord component.- Returns:
- the value of the
anyDeletesrecord component
-
allDeleted
Returns the value of theallDeletedrecord component.- Returns:
- the value of the
allDeletedrecord component
-