Package ai.extend.types
Class ParseRunSummaryMetrics.Builder
- java.lang.Object
-
- ai.extend.types.ParseRunSummaryMetrics.Builder
-
- All Implemented Interfaces:
ParseRunSummaryMetrics._FinalStage,ParseRunSummaryMetrics.PageCountStage,ParseRunSummaryMetrics.ProcessingTimeMsStage
- Enclosing class:
- ParseRunSummaryMetrics
public static final class ParseRunSummaryMetrics.Builder extends java.lang.Object implements ParseRunSummaryMetrics.ProcessingTimeMsStage, ParseRunSummaryMetrics.PageCountStage, ParseRunSummaryMetrics._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseRunSummaryMetricsbuild()ParseRunSummaryMetrics.Builderfrom(ParseRunSummaryMetrics other)ParseRunSummaryMetrics._FinalStagepageCount(double pageCount)The number of pages from the document that were parsed.ParseRunSummaryMetrics.PageCountStageprocessingTimeMs(double processingTimeMs)The time taken to process the document in milliseconds.
-
-
-
Method Detail
-
from
public ParseRunSummaryMetrics.Builder from(ParseRunSummaryMetrics other)
- Specified by:
fromin interfaceParseRunSummaryMetrics.ProcessingTimeMsStage
-
processingTimeMs
public ParseRunSummaryMetrics.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 interfaceParseRunSummaryMetrics.ProcessingTimeMsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
pageCount
public ParseRunSummaryMetrics._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 interfaceParseRunSummaryMetrics.PageCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public ParseRunSummaryMetrics build()
- Specified by:
buildin interfaceParseRunSummaryMetrics._FinalStage
-
-