Class BatchProcessingResults

java.lang.Object
org.apache.camel.component.docling.BatchProcessingResults

public class BatchProcessingResults extends Object
Contains the results of a batch document processing operation.
  • Constructor Details

    • BatchProcessingResults

      public BatchProcessingResults()
    • BatchProcessingResults

      public BatchProcessingResults(List<BatchConversionResult> results)
  • Method Details

    • getResults

      public List<BatchConversionResult> getResults()
      Gets the list of all conversion results.
      Returns:
      list of batch conversion results
    • setResults

      public void setResults(List<BatchConversionResult> results)
    • addResult

      public void addResult(BatchConversionResult result)
      Adds a conversion result to the batch.
      Parameters:
      result - the result to add
    • getSuccessful

      public List<BatchConversionResult> getSuccessful()
      Gets only the successful conversion results.
      Returns:
      list of successful results
    • getFailed

      public List<BatchConversionResult> getFailed()
      Gets only the failed conversion results.
      Returns:
      list of failed results
    • getTotalDocuments

      public int getTotalDocuments()
      Gets the total number of documents in the batch.
      Returns:
      total document count
    • setTotalDocuments

      public void setTotalDocuments(int totalDocuments)
    • getSuccessCount

      public int getSuccessCount()
      Gets the number of successfully converted documents.
      Returns:
      success count
    • setSuccessCount

      public void setSuccessCount(int successCount)
    • getFailureCount

      public int getFailureCount()
      Gets the number of failed document conversions.
      Returns:
      failure count
    • setFailureCount

      public void setFailureCount(int failureCount)
    • getTotalProcessingTimeMs

      public long getTotalProcessingTimeMs()
      Gets the total processing time for the entire batch in milliseconds.
      Returns:
      total processing time
    • setTotalProcessingTimeMs

      public void setTotalProcessingTimeMs(long totalProcessingTimeMs)
    • getStartTimeMs

      public long getStartTimeMs()
      Gets the start time of batch processing in milliseconds since epoch.
      Returns:
      start time
    • setStartTimeMs

      public void setStartTimeMs(long startTimeMs)
    • getEndTimeMs

      public long getEndTimeMs()
      Gets the end time of batch processing in milliseconds since epoch.
      Returns:
      end time
    • setEndTimeMs

      public void setEndTimeMs(long endTimeMs)
    • isAllSuccessful

      public boolean isAllSuccessful()
      Indicates whether all documents were processed successfully.
      Returns:
      true if all successful, false otherwise
    • hasAnySuccessful

      public boolean hasAnySuccessful()
      Indicates whether any documents were processed successfully.
      Returns:
      true if at least one success, false otherwise
    • hasAnyFailures

      public boolean hasAnyFailures()
      Indicates whether any documents failed to process.
      Returns:
      true if at least one failure, false otherwise
    • getSuccessRate

      public double getSuccessRate()
      Gets the success rate as a percentage.
      Returns:
      success rate (0.0 to 100.0)
    • toString

      public String toString()
      Overrides:
      toString in class Object