Package ai.extend.types
Class ParseRunMetrics.Builder
- java.lang.Object
-
- ai.extend.types.ParseRunMetrics.Builder
-
- All Implemented Interfaces:
ParseRunMetrics._FinalStage,ParseRunMetrics.PageCountStage,ParseRunMetrics.ProcessingTimeMsStage
- Enclosing class:
- ParseRunMetrics
public static final class ParseRunMetrics.Builder extends java.lang.Object implements ParseRunMetrics.ProcessingTimeMsStage, ParseRunMetrics.PageCountStage, ParseRunMetrics._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseRunMetricsbuild()ParseRunMetrics.Builderfrom(ParseRunMetrics other)ParseRunMetrics._FinalStagepageCount(double pageCount)The number of pages from the document that were parsed.ParseRunMetrics.PageCountStageprocessingTimeMs(double processingTimeMs)The time taken to process the document in milliseconds.
-
-
-
Method Detail
-
from
public ParseRunMetrics.Builder from(ParseRunMetrics other)
- Specified by:
fromin interfaceParseRunMetrics.ProcessingTimeMsStage
-
processingTimeMs
public ParseRunMetrics.PageCountStage processingTimeMs(double processingTimeMs)
The time taken to process the document in milliseconds.
The time taken to process the document in milliseconds.
- Specified by:
processingTimeMsin interfaceParseRunMetrics.ProcessingTimeMsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
pageCount
public ParseRunMetrics._FinalStage pageCount(double pageCount)
The number of pages from the document that were parsed. For PDF and image files, this is the actual page count. For spreadsheet files (Excel, CSV), this is an estimated page count based on content volume (~1000 tokens per page).
The number of pages from the document that were parsed. For PDF and image files, this is the actual page count. For spreadsheet files (Excel, CSV), this is an estimated page count based on content volume (~1000 tokens per page).
- Specified by:
pageCountin interfaceParseRunMetrics.PageCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public ParseRunMetrics build()
- Specified by:
buildin interfaceParseRunMetrics._FinalStage
-
-