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