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 Details

    • LDIFImportResult

      public LDIFImportResult(long entriesRead, long entriesRejected, long entriesSkipped)
      Creates an instance of a LDIFImportResult record class.
      Parameters:
      entriesRead - the value for the entriesRead record component
      entriesRejected - the value for the entriesRejected record component
      entriesSkipped - the value for the entriesSkipped 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • entriesRead

      public long entriesRead()
      Returns the value of the entriesRead record component.
      Returns:
      the value of the entriesRead record component
    • entriesRejected

      public long entriesRejected()
      Returns the value of the entriesRejected record component.
      Returns:
      the value of the entriesRejected record component
    • entriesSkipped

      public long entriesSkipped()
      Returns the value of the entriesSkipped record component.
      Returns:
      the value of the entriesSkipped record component