Class EditRunMetrics.Builder
- java.lang.Object
-
- ai.extend.types.EditRunMetrics.Builder
-
- All Implemented Interfaces:
EditRunMetrics._FinalStage,EditRunMetrics.FieldAnnotationTimeMsStage,EditRunMetrics.FieldCountStage,EditRunMetrics.FieldDetectionTimeMsStage,EditRunMetrics.FieldFillingTimeMsStage,EditRunMetrics.FieldsAnnotatedCountStage,EditRunMetrics.FieldsDetectedCountStage,EditRunMetrics.PageCountStage,EditRunMetrics.ProcessingTimeMsStage
- Enclosing class:
- EditRunMetrics
public static final class EditRunMetrics.Builder extends java.lang.Object implements EditRunMetrics.ProcessingTimeMsStage, EditRunMetrics.PageCountStage, EditRunMetrics.FieldCountStage, EditRunMetrics.FieldsDetectedCountStage, EditRunMetrics.FieldsAnnotatedCountStage, EditRunMetrics.FieldDetectionTimeMsStage, EditRunMetrics.FieldAnnotationTimeMsStage, EditRunMetrics.FieldFillingTimeMsStage, EditRunMetrics._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EditRunMetricsbuild()EditRunMetrics.FieldFillingTimeMsStagefieldAnnotationTimeMs(double fieldAnnotationTimeMs)The time taken to annotate field positions in the document, in milliseconds.EditRunMetrics.FieldsDetectedCountStagefieldCount(int fieldCount)The total number of fields in the schema.EditRunMetrics.FieldAnnotationTimeMsStagefieldDetectionTimeMs(double fieldDetectionTimeMs)The time taken to detect fields in the document, in milliseconds.EditRunMetrics._FinalStagefieldFillingTimeMs(double fieldFillingTimeMs)The time taken to fill the fields in the document, in milliseconds.EditRunMetrics.FieldDetectionTimeMsStagefieldsAnnotatedCount(int fieldsAnnotatedCount)The number of fields that were annotated with bounding boxes.EditRunMetrics.FieldsAnnotatedCountStagefieldsDetectedCount(int fieldsDetectedCount)The number of fields that were automatically detected.EditRunMetrics.Builderfrom(EditRunMetrics other)EditRunMetrics.FieldCountStagepageCount(int pageCount)The number of pages in the document.EditRunMetrics.PageCountStageprocessingTimeMs(double processingTimeMs)Total processing time in milliseconds.
-
-
-
Method Detail
-
from
public EditRunMetrics.Builder from(EditRunMetrics other)
- Specified by:
fromin interfaceEditRunMetrics.ProcessingTimeMsStage
-
processingTimeMs
public EditRunMetrics.PageCountStage processingTimeMs(double processingTimeMs)
Total processing time in milliseconds.
Total processing time in milliseconds.
- Specified by:
processingTimeMsin interfaceEditRunMetrics.ProcessingTimeMsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
pageCount
public EditRunMetrics.FieldCountStage pageCount(int pageCount)
The number of pages in the document.
The number of pages in the document.
- Specified by:
pageCountin interfaceEditRunMetrics.PageCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fieldCount
public EditRunMetrics.FieldsDetectedCountStage fieldCount(int fieldCount)
The total number of fields in the schema.
The total number of fields in the schema.
- Specified by:
fieldCountin interfaceEditRunMetrics.FieldCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fieldsDetectedCount
public EditRunMetrics.FieldsAnnotatedCountStage fieldsDetectedCount(int fieldsDetectedCount)
The number of fields that were automatically detected.
The number of fields that were automatically detected.
- Specified by:
fieldsDetectedCountin interfaceEditRunMetrics.FieldsDetectedCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fieldsAnnotatedCount
public EditRunMetrics.FieldDetectionTimeMsStage fieldsAnnotatedCount(int fieldsAnnotatedCount)
The number of fields that were annotated with bounding boxes.
The number of fields that were annotated with bounding boxes.
- Specified by:
fieldsAnnotatedCountin interfaceEditRunMetrics.FieldsAnnotatedCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fieldDetectionTimeMs
public EditRunMetrics.FieldAnnotationTimeMsStage fieldDetectionTimeMs(double fieldDetectionTimeMs)
The time taken to detect fields in the document, in milliseconds.
The time taken to detect fields in the document, in milliseconds.
- Specified by:
fieldDetectionTimeMsin interfaceEditRunMetrics.FieldDetectionTimeMsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fieldAnnotationTimeMs
public EditRunMetrics.FieldFillingTimeMsStage fieldAnnotationTimeMs(double fieldAnnotationTimeMs)
The time taken to annotate field positions in the document, in milliseconds.
The time taken to annotate field positions in the document, in milliseconds.
- Specified by:
fieldAnnotationTimeMsin interfaceEditRunMetrics.FieldAnnotationTimeMsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fieldFillingTimeMs
public EditRunMetrics._FinalStage fieldFillingTimeMs(double fieldFillingTimeMs)
The time taken to fill the fields in the document, in milliseconds.
The time taken to fill the fields in the document, in milliseconds.
- Specified by:
fieldFillingTimeMsin interfaceEditRunMetrics.FieldFillingTimeMsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public EditRunMetrics build()
- Specified by:
buildin interfaceEditRunMetrics._FinalStage
-
-