Class SearchIndexStatistics
java.lang.Object
com.azure.search.documents.indexes.models.SearchIndexStatistics
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SearchIndexStatistics>
public final class SearchIndexStatistics
extends Object
implements com.azure.json.JsonSerializable<SearchIndexStatistics>
Statistics for a given index. Statistics are collected periodically and are not guaranteed to always be up-to-date.
-
Constructor Summary
ConstructorsConstructorDescriptionSearchIndexStatistics(long documentCount, long storageSize) Creates an instance of SearchIndexStatistics class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchIndexStatisticsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SearchIndexStatistics from the JsonReader.longGet the documentCount property: The number of documents in the index.longGet the storageSize property: The amount of storage in bytes consumed by the index.Get the vectorIndexSize property: The amount of memory in bytes consumed by vectors in the 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
-
SearchIndexStatistics
public SearchIndexStatistics(long documentCount, long storageSize) Creates an instance of SearchIndexStatistics class.- Parameters:
documentCount- the documentCount value to set.storageSize- the storageSize value to set.
-
-
Method Details
-
getDocumentCount
public long getDocumentCount()Get the documentCount property: The number of documents in the index.- Returns:
- the documentCount value.
-
getStorageSize
public long getStorageSize()Get the storageSize property: The amount of storage in bytes consumed by the index.- Returns:
- the storageSize value.
-
getVectorIndexSize
Get the vectorIndexSize property: The amount of memory in bytes consumed by vectors in the index.- Returns:
- the vectorIndexSize value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SearchIndexStatistics>- Throws:
IOException
-
fromJson
public static SearchIndexStatistics fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SearchIndexStatistics from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SearchIndexStatistics if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the SearchIndexStatistics.
-