Package org.opends.server.api
Record Class LocalBackend.LDIFImportResult
java.lang.Object
java.lang.Record
org.opends.server.api.LocalBackend.LDIFImportResult
- Record Components:
entriesRead
- The total number of entries read during the import, including those that were later rejected or skipped.entriesRejected
- The total number of entries rejected during the import.entriesSkipped
- The total number of entries skipped during the import.
- Enclosing class:
- LocalBackend<C extends Configuration>
public static record LocalBackend.LDIFImportResult(long entriesRead, long entriesRejected, long entriesSkipped)
extends Record
Provides information about the state of a completed LDIF import, including
the total number of entries read, skipped, and rejected.
-
Constructor Summary
ConstructorDescriptionLDIFImportResult
(long entriesRead, long entriesRejected, long entriesSkipped) Creates an instance of aLDIFImportResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of theentriesRead
record component.long
Returns the value of theentriesRejected
record component.long
Returns the value of theentriesSkipped
record component.final boolean
Indicates whether some other object is "equal to" this one.long
Retrieves the total number of entries that were successfully imported.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
LDIFImportResult
public LDIFImportResult(long entriesRead, long entriesRejected, long entriesSkipped) Creates an instance of aLDIFImportResult
record class.- Parameters:
entriesRead
- the value for theentriesRead
record componententriesRejected
- the value for theentriesRejected
record componententriesSkipped
- the value for theentriesSkipped
record component
-
-
Method Details
-
getEntriesImported
public long getEntriesImported()Retrieves the total number of entries that were successfully imported.- Returns:
- The total number of entries that were successfully imported.
-
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 '=='. -
entriesRead
public long entriesRead()Returns the value of theentriesRead
record component.- Returns:
- the value of the
entriesRead
record component
-
entriesRejected
public long entriesRejected()Returns the value of theentriesRejected
record component.- Returns:
- the value of the
entriesRejected
record component
-
entriesSkipped
public long entriesSkipped()Returns the value of theentriesSkipped
record component.- Returns:
- the value of the
entriesSkipped
record component
-