AnalyzeBatchDocumentsOptions Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. AnalyzeBatchDocumentsOptions
- com.
Implements
public final class AnalyzeBatchDocumentsOptions
implements JsonSerializable<AnalyzeBatchDocumentsOptions>
Batch document analysis parameters.
Constructor Summary
| Constructor | Description |
|---|---|
| AnalyzeBatchDocumentsOptions(AzureBlobContentSource azureBlobSource, String resultContainerUrl) |
Creates an instance of Analyze |
| AnalyzeBatchDocumentsOptions(AzureBlobFileListContentSource azureBlobFileListSource, String resultContainerUrl) |
Creates an instance of Analyze |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Analyze |
fromJson(JsonReader jsonReader)
Reads an instance of Analyze |
|
Azure |
getAzureBlobFileListSource()
Get the azure |
|
Azure |
getAzureBlobSource()
Get the azure |
|
List<Document |
getDocumentAnalysisFeatures()
Get the list of optional analysis features. |
| String |
getLocale()
Get the locale hint for text recognition and document analysis. |
|
List<Analyze |
getOutput()
Gets the list of output formats. |
|
Document |
getOutputContentFormat()
Gets the output content format. |
| List<String> |
getPages()
Get the custom page numbers for multipage documents(PDF/TIFF). |
| List<String> |
getQueryFields()
Gets the list of additional fields to include in the result. |
| String |
getResultContainerUrl()
Get the result |
| String |
getResultPrefix()
Get the result |
|
String |
getStringIndexType()
Gets the string index type. |
| Boolean |
isOverwriteExisting()
Get the overwrite |
|
Analyze |
setDocumentAnalysisFeatures(DocumentAnalysisFeature[] documentAnalysisFeatures)
Set optional analysis features. |
|
Analyze |
setDocumentAnalysisFeatures(List<DocumentAnalysisFeature> documentAnalysisFeatures)
Set the list of optional analysis features. |
|
Analyze |
setLocale(String locale)
Set the locale value. |
|
Analyze |
setOutput(List<AnalyzeOutputFormat> output)
Sets the list of output formats. |
|
Analyze |
setOutputContentFormat(DocumentContentFormat outputContentFormat)
Sets the output content format. |
|
Analyze |
setOverwriteExisting(Boolean overwriteExisting)
Set the overwrite |
|
Analyze |
setPages(List<String> pages)
Set the custom page numbers for multipage documents(PDF/TIFF). |
|
Analyze |
setQueryFields(List<String> queryFields)
Sets the list of additional fields to include in the result. |
|
Analyze |
setResultPrefix(String resultPrefix)
Set the result |
|
Analyze |
setStringIndexType(StringIndexType stringIndexType)
Sets the string index type. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AnalyzeBatchDocumentsOptions
public AnalyzeBatchDocumentsOptions(AzureBlobContentSource azureBlobSource, String resultContainerUrl)
Creates an instance of AnalyzeBatchDocumentsOptions with the specified Azure Blob source and result container URL.
Parameters:
AnalyzeBatchDocumentsOptions
public AnalyzeBatchDocumentsOptions(AzureBlobFileListContentSource azureBlobFileListSource, String resultContainerUrl)
Creates an instance of AnalyzeBatchDocumentsOptions with the specified result container URL and Azure Blob file list source.
Parameters:
Method Details
fromJson
public static AnalyzeBatchDocumentsOptions fromJson(JsonReader jsonReader)
Reads an instance of AnalyzeBatchDocumentsOptions from the JsonReader.
Parameters:
Returns:
Throws:
getAzureBlobFileListSource
public AzureBlobFileListContentSource getAzureBlobFileListSource()
Get the azureBlobFileListSource property: Azure Blob Storage file list specifying the batch documents. Either azureBlobSource or azureBlobFileListSource must be specified.
Returns:
getAzureBlobSource
public AzureBlobContentSource getAzureBlobSource()
Get the azureBlobSource property: Azure Blob Storage location containing the batch documents. Either azureBlobSource or azureBlobFileListSource must be specified.
Returns:
getDocumentAnalysisFeatures
public List<DocumentAnalysisFeature> getDocumentAnalysisFeatures()
Get the list of optional analysis features.
Returns:
getLocale
public String getLocale()
Get the locale hint for text recognition and document analysis. Value may contain only the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").
Returns:
getOutput
public List<AnalyzeOutputFormat> getOutput()
Gets the list of output formats.
Returns:
getOutputContentFormat
public DocumentContentFormat getOutputContentFormat()
Gets the output content format.
Returns:
getPages
public List<String> getPages()
Get the custom page numbers for multipage documents(PDF/TIFF). Input the number of the pages you want to get the recognized result for.
For a range of pages, use a hyphen, ex - ["1-3"]. Separate each page or a page range with a comma, ex - ["1-3", 4].
Returns:
getQueryFields
public List<String> getQueryFields()
Gets the list of additional fields to include in the result.
Returns:
getResultContainerUrl
public String getResultContainerUrl()
Get the resultContainerUrl property: Azure Blob Storage container URL where analyze result files will be stored.
Returns:
getResultPrefix
public String getResultPrefix()
Get the resultPrefix property: Blob name prefix of result files.
Returns:
getStringIndexType
public StringIndexType getStringIndexType()
Gets the string index type.
Returns:
isOverwriteExisting
public Boolean isOverwriteExisting()
Get the overwriteExisting property: Overwrite existing analyze result files?.
Returns:
setDocumentAnalysisFeatures
public AnalyzeBatchDocumentsOptions setDocumentAnalysisFeatures(DocumentAnalysisFeature[] documentAnalysisFeatures)
Set optional analysis features.
Parameters:
Returns:
AnalyzeBatchDocumentsOptions value.setDocumentAnalysisFeatures
public AnalyzeBatchDocumentsOptions setDocumentAnalysisFeatures(List<DocumentAnalysisFeature> documentAnalysisFeatures)
Set the list of optional analysis features.
Parameters:
Returns:
AnalyzeBatchDocumentsOptions value.setLocale
public AnalyzeBatchDocumentsOptions setLocale(String locale)
Set the locale value. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.
Parameters:
Returns:
AnalyzeBatchDocumentsOptions value.setOutput
public AnalyzeBatchDocumentsOptions setOutput(List<AnalyzeOutputFormat> output)
Sets the list of output formats.
Parameters:
Returns:
AnalyzeBatchDocumentsOptions value.setOutputContentFormat
public AnalyzeBatchDocumentsOptions setOutputContentFormat(DocumentContentFormat outputContentFormat)
Sets the output content format.
Parameters:
Returns:
AnalyzeBatchDocumentsOptions value.setOverwriteExisting
public AnalyzeBatchDocumentsOptions setOverwriteExisting(Boolean overwriteExisting)
Set the overwriteExisting property: Overwrite existing analyze result files?.
Parameters:
Returns:
setPages
public AnalyzeBatchDocumentsOptions setPages(List<String> pages)
Set the custom page numbers for multipage documents(PDF/TIFF). Input the number of the pages you want to get the recognized result for.
For a range of pages, use a hyphen, ex - ["1-3"]. Separate each page or a page range with a comma, ex - ["1-3", 4].
Parameters:
Returns:
AnalyzeBatchDocumentsOptions value.setQueryFields
public AnalyzeBatchDocumentsOptions setQueryFields(List<String> queryFields)
Sets the list of additional fields to include in the result.
Parameters:
Returns:
AnalyzeBatchDocumentsOptions value.setResultPrefix
public AnalyzeBatchDocumentsOptions setResultPrefix(String resultPrefix)
Set the resultPrefix property: Blob name prefix of result files.
Parameters:
Returns:
setStringIndexType
public AnalyzeBatchDocumentsOptions setStringIndexType(StringIndexType stringIndexType)
Sets the string index type.
Parameters:
Returns:
AnalyzeBatchDocumentsOptions value.