Class ContentUnderstandingSkillChunkingProperties

java.lang.Object
com.azure.search.documents.indexes.models.ContentUnderstandingSkillChunkingProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContentUnderstandingSkillChunkingProperties>

public final class ContentUnderstandingSkillChunkingProperties extends Object implements com.azure.json.JsonSerializable<ContentUnderstandingSkillChunkingProperties>
Controls the cardinality for chunking the content.
  • Constructor Details

    • ContentUnderstandingSkillChunkingProperties

      public ContentUnderstandingSkillChunkingProperties()
      Creates an instance of ContentUnderstandingSkillChunkingProperties 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 ContentUnderstandingSkillChunkingProperties 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 ContentUnderstandingSkillChunkingProperties 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 ContentUnderstandingSkillChunkingProperties 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 ContentUnderstandingSkillChunkingProperties 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 ContentUnderstandingSkillChunkingProperties 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<ContentUnderstandingSkillChunkingProperties>
      Throws:
      IOException
    • fromJson

      public static ContentUnderstandingSkillChunkingProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ContentUnderstandingSkillChunkingProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ContentUnderstandingSkillChunkingProperties 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 ContentUnderstandingSkillChunkingProperties.