Class BatchConversionResult

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

public class BatchConversionResult extends Object
Represents the result of a single document conversion in a batch operation.
  • Constructor Details

    • BatchConversionResult

      public BatchConversionResult()
    • BatchConversionResult

      public BatchConversionResult(String documentId, String originalPath)
  • Method Details

    • getDocumentId

      public String getDocumentId()
      Gets the unique identifier for this document in the batch.
      Returns:
      the document ID
    • setDocumentId

      public void setDocumentId(String documentId)
    • getOriginalPath

      public String getOriginalPath()
      Gets the original file path or URL of the document.
      Returns:
      the original path
    • setOriginalPath

      public void setOriginalPath(String originalPath)
    • getResult

      public String getResult()
      Gets the conversion result (content or file path depending on contentInBody configuration).
      Returns:
      the conversion result
    • setResult

      public void setResult(String result)
    • isSuccess

      public boolean isSuccess()
      Indicates whether the conversion was successful.
      Returns:
      true if successful, false otherwise
    • setSuccess

      public void setSuccess(boolean success)
    • getErrorMessage

      public String getErrorMessage()
      Gets the error message if the conversion failed.
      Returns:
      the error message, or null if successful
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
    • getProcessingTimeMs

      public long getProcessingTimeMs()
      Gets the processing time for this document in milliseconds.
      Returns:
      the processing time in milliseconds
    • setProcessingTimeMs

      public void setProcessingTimeMs(long processingTimeMs)
    • getBatchIndex

      public int getBatchIndex()
      Gets the index of this document in the batch (0-based).
      Returns:
      the batch index
    • setBatchIndex

      public void setBatchIndex(int batchIndex)
    • toString

      public String toString()
      Overrides:
      toString in class Object