Class DocumentIntelligenceLayoutSkillChunkingProperties
java.lang.Object
com.azure.search.documents.indexes.models.DocumentIntelligenceLayoutSkillChunkingProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DocumentIntelligenceLayoutSkillChunkingProperties>
public final class DocumentIntelligenceLayoutSkillChunkingProperties
extends Object
implements com.azure.json.JsonSerializable<DocumentIntelligenceLayoutSkillChunkingProperties>
Controls the cardinality for chunking the content.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DocumentIntelligenceLayoutSkillChunkingProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DocumentIntelligenceLayoutSkillChunkingProperties from the JsonReader.Get the maximumLength property: The maximum chunk length in characters.Get the overlapLength property: The length of overlap provided between two text chunks.getUnit()Get the unit property: The unit of the chunk.setMaximumLength(Integer maximumLength) Set the maximumLength property: The maximum chunk length in characters.setOverlapLength(Integer overlapLength) Set the overlapLength property: The length of overlap provided between two text chunks.Set the unit property: The unit of the chunk.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DocumentIntelligenceLayoutSkillChunkingProperties
public DocumentIntelligenceLayoutSkillChunkingProperties()Creates an instance of DocumentIntelligenceLayoutSkillChunkingProperties class.
-
-
Method Details
-
getUnit
Get the unit property: The unit of the chunk.- Returns:
- the unit value.
-
setUnit
public DocumentIntelligenceLayoutSkillChunkingProperties setUnit(DocumentIntelligenceLayoutSkillChunkingUnit unit) Set the unit property: The unit of the chunk.- Parameters:
unit- the unit value to set.- Returns:
- the DocumentIntelligenceLayoutSkillChunkingProperties object itself.
-
getMaximumLength
Get the maximumLength property: The maximum chunk length in characters. Default is 500.- Returns:
- the maximumLength value.
-
setMaximumLength
Set the maximumLength property: The maximum chunk length in characters. Default is 500.- Parameters:
maximumLength- the maximumLength value to set.- Returns:
- the DocumentIntelligenceLayoutSkillChunkingProperties object itself.
-
getOverlapLength
Get the overlapLength property: The length of overlap provided between two text chunks. Default is 0.- Returns:
- the overlapLength value.
-
setOverlapLength
Set the overlapLength property: The length of overlap provided between two text chunks. Default is 0.- Parameters:
overlapLength- the overlapLength value to set.- Returns:
- the DocumentIntelligenceLayoutSkillChunkingProperties object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DocumentIntelligenceLayoutSkillChunkingProperties>- Throws:
IOException
-
fromJson
public static DocumentIntelligenceLayoutSkillChunkingProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DocumentIntelligenceLayoutSkillChunkingProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DocumentIntelligenceLayoutSkillChunkingProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the DocumentIntelligenceLayoutSkillChunkingProperties.
-