Class BatchConversionResult
java.lang.Object
org.apache.camel.component.docling.BatchConversionResult
Represents the result of a single document conversion in a batch operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the index of this document in the batch (0-based).Gets the unique identifier for this document in the batch.Gets the error message if the conversion failed.Gets the original file path or URL of the document.longGets the processing time for this document in milliseconds.Gets the conversion result (content or file path depending on contentInBody configuration).booleanIndicates whether the conversion was successful.voidsetBatchIndex(int batchIndex) voidsetDocumentId(String documentId) voidsetErrorMessage(String errorMessage) voidsetOriginalPath(String originalPath) voidsetProcessingTimeMs(long processingTimeMs) voidvoidsetSuccess(boolean success) toString()
-
Constructor Details
-
BatchConversionResult
public BatchConversionResult() -
BatchConversionResult
-
-
Method Details
-
getDocumentId
Gets the unique identifier for this document in the batch.- Returns:
- the document ID
-
setDocumentId
-
getOriginalPath
Gets the original file path or URL of the document.- Returns:
- the original path
-
setOriginalPath
-
getResult
Gets the conversion result (content or file path depending on contentInBody configuration).- Returns:
- the conversion result
-
setResult
-
isSuccess
public boolean isSuccess()Indicates whether the conversion was successful.- Returns:
- true if successful, false otherwise
-
setSuccess
public void setSuccess(boolean success) -
getErrorMessage
Gets the error message if the conversion failed.- Returns:
- the error message, or null if successful
-
setErrorMessage
-
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
-