Class SearchServiceLimits
java.lang.Object
com.azure.search.documents.indexes.models.SearchServiceLimits
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchServiceLimits>
public final class SearchServiceLimits
extends Object
implements com.azure.json.JsonSerializable<SearchServiceLimits>
Represents various service level limits.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchServiceLimitsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchServiceLimits from the JsonReader.Get the maxComplexCollectionFieldsPerIndex property: The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index.Get the maxComplexObjectsInCollectionsPerDocument property: The maximum number of objects in complex collections allowed per document.Get the maxFieldNestingDepthPerIndex property: The maximum depth which you can nest sub-fields in an index, including the top-level complex field.Get the maxFieldsPerIndex property: The maximum allowed fields per index.Get the maxStoragePerIndexInBytes property: The maximum amount of storage in bytes allowed per index.setMaxComplexCollectionFieldsPerIndex(Integer maxComplexCollectionFieldsPerIndex) Set the maxComplexCollectionFieldsPerIndex property: The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index.setMaxComplexObjectsInCollectionsPerDocument(Integer maxComplexObjectsInCollectionsPerDocument) Set the maxComplexObjectsInCollectionsPerDocument property: The maximum number of objects in complex collections allowed per document.setMaxFieldNestingDepthPerIndex(Integer maxFieldNestingDepthPerIndex) Set the maxFieldNestingDepthPerIndex property: The maximum depth which you can nest sub-fields in an index, including the top-level complex field.setMaxFieldsPerIndex(Integer maxFieldsPerIndex) Set the maxFieldsPerIndex property: The maximum allowed fields per index.setMaxStoragePerIndexInBytes(Long maxStoragePerIndexInBytes) Set the maxStoragePerIndexInBytes property: The maximum amount of storage in bytes allowed per index.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
-
SearchServiceLimits
public SearchServiceLimits()Creates an instance of SearchServiceLimits class.
-
-
Method Details
-
getMaxFieldsPerIndex
Get the maxFieldsPerIndex property: The maximum allowed fields per index.- Returns:
- the maxFieldsPerIndex value.
-
setMaxFieldsPerIndex
Set the maxFieldsPerIndex property: The maximum allowed fields per index.- Parameters:
maxFieldsPerIndex- the maxFieldsPerIndex value to set.- Returns:
- the SearchServiceLimits object itself.
-
getMaxFieldNestingDepthPerIndex
Get the maxFieldNestingDepthPerIndex property: The maximum depth which you can nest sub-fields in an index, including the top-level complex field. For example, a/b/c has a nesting depth of 3.- Returns:
- the maxFieldNestingDepthPerIndex value.
-
setMaxFieldNestingDepthPerIndex
Set the maxFieldNestingDepthPerIndex property: The maximum depth which you can nest sub-fields in an index, including the top-level complex field. For example, a/b/c has a nesting depth of 3.- Parameters:
maxFieldNestingDepthPerIndex- the maxFieldNestingDepthPerIndex value to set.- Returns:
- the SearchServiceLimits object itself.
-
getMaxComplexCollectionFieldsPerIndex
Get the maxComplexCollectionFieldsPerIndex property: The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index.- Returns:
- the maxComplexCollectionFieldsPerIndex value.
-
setMaxComplexCollectionFieldsPerIndex
public SearchServiceLimits setMaxComplexCollectionFieldsPerIndex(Integer maxComplexCollectionFieldsPerIndex) Set the maxComplexCollectionFieldsPerIndex property: The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index.- Parameters:
maxComplexCollectionFieldsPerIndex- the maxComplexCollectionFieldsPerIndex value to set.- Returns:
- the SearchServiceLimits object itself.
-
getMaxComplexObjectsInCollectionsPerDocument
Get the maxComplexObjectsInCollectionsPerDocument property: The maximum number of objects in complex collections allowed per document.- Returns:
- the maxComplexObjectsInCollectionsPerDocument value.
-
setMaxComplexObjectsInCollectionsPerDocument
public SearchServiceLimits setMaxComplexObjectsInCollectionsPerDocument(Integer maxComplexObjectsInCollectionsPerDocument) Set the maxComplexObjectsInCollectionsPerDocument property: The maximum number of objects in complex collections allowed per document.- Parameters:
maxComplexObjectsInCollectionsPerDocument- the maxComplexObjectsInCollectionsPerDocument value to set.- Returns:
- the SearchServiceLimits object itself.
-
getMaxStoragePerIndexInBytes
Get the maxStoragePerIndexInBytes property: The maximum amount of storage in bytes allowed per index.- Returns:
- the maxStoragePerIndexInBytes value.
-
setMaxStoragePerIndexInBytes
Set the maxStoragePerIndexInBytes property: The maximum amount of storage in bytes allowed per index.- Parameters:
maxStoragePerIndexInBytes- the maxStoragePerIndexInBytes value to set.- Returns:
- the SearchServiceLimits object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchServiceLimits>- Throws:
IOException
-
fromJson
Reads an instance of SearchServiceLimits from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchServiceLimits 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 SearchServiceLimits.
-