Record Class ChunkOutcome

java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.jobs.model.ChunkOutcome
Record Components:
rowsIn - rows the chunk read
rowsOk - rows it applied
rowsFailed - rows that failed (recorded in jobs_row_error)
summaryJson - merged ProcessSummaryLines for the chunk, as JSON (may be null)
outputsJson - outputs left in storage (reports, exports), as JSON (may be null)

public record ChunkOutcome(int rowsIn, int rowsOk, int rowsFailed, String summaryJson, String outputsJson) extends Record
What a chunk run produced.
  • Constructor Details

    • ChunkOutcome

      public ChunkOutcome(int rowsIn, int rowsOk, int rowsFailed, String summaryJson, String outputsJson)
      Creates an instance of a ChunkOutcome record class.
      Parameters:
      rowsIn - the value for the rowsIn record component
      rowsOk - the value for the rowsOk record component
      rowsFailed - the value for the rowsFailed record component
      summaryJson - the value for the summaryJson record component
      outputsJson - the value for the outputsJson record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • rowsIn

      public int rowsIn()
      Returns the value of the rowsIn record component.
      Returns:
      the value of the rowsIn record component
    • rowsOk

      public int rowsOk()
      Returns the value of the rowsOk record component.
      Returns:
      the value of the rowsOk record component
    • rowsFailed

      public int rowsFailed()
      Returns the value of the rowsFailed record component.
      Returns:
      the value of the rowsFailed record component
    • summaryJson

      public String summaryJson()
      Returns the value of the summaryJson record component.
      Returns:
      the value of the summaryJson record component
    • outputsJson

      public String outputsJson()
      Returns the value of the outputsJson record component.
      Returns:
      the value of the outputsJson record component