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 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

      Set the unit property: The unit of the chunk.
      Parameters:
      unit - the unit value to set.
      Returns:
      the DocumentIntelligenceLayoutSkillChunkingProperties object itself.
    • getMaximumLength

      public Integer getMaximumLength()
      Get the maximumLength property: The maximum chunk length in characters. Default is 500.
      Returns:
      the maximumLength value.
    • setMaximumLength

      public DocumentIntelligenceLayoutSkillChunkingProperties setMaximumLength(Integer maximumLength)
      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

      public Integer getOverlapLength()
      Get the overlapLength property: The length of overlap provided between two text chunks. Default is 0.
      Returns:
      the overlapLength value.
    • setOverlapLength

      public DocumentIntelligenceLayoutSkillChunkingProperties setOverlapLength(Integer overlapLength)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.