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
ConstructorsConstructorDescriptionLDIFImportResult(long entriesRead, long entriesRejected, long entriesSkipped) Creates an instance of aLDIFImportResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theentriesReadrecord component.longReturns the value of theentriesRejectedrecord component.longReturns the value of theentriesSkippedrecord component.final booleanIndicates whether some other object is "equal to" this one.longRetrieves the total number of entries that were successfully imported.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LDIFImportResult
public LDIFImportResult(long entriesRead, long entriesRejected, long entriesSkipped) Creates an instance of aLDIFImportResultrecord class.- Parameters:
entriesRead- the value for theentriesReadrecord componententriesRejected- the value for theentriesRejectedrecord componententriesSkipped- the value for theentriesSkippedrecord 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 theentriesReadrecord component.- Returns:
- the value of the
entriesReadrecord component
-
entriesRejected
public long entriesRejected()Returns the value of theentriesRejectedrecord component.- Returns:
- the value of the
entriesRejectedrecord component
-
entriesSkipped
public long entriesSkipped()Returns the value of theentriesSkippedrecord component.- Returns:
- the value of the
entriesSkippedrecord component
-