A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/appsearch/StorageInfo below:

StorageInfo | Google Play services

StorageInfo

Stay organized with collections Save and categorize content based on your preferences.

The response class of AppSearchClient#getStorageInfo.

Nested Class Summary Inherited Constant Summary From interface android.os.Parcelable int CONTENTS_FILE_DESCRIPTOR int PARCELABLE_WRITE_RETURN_VALUE Field Summary Public Method Summary Inherited Method Summary From class java.lang.Object Object

clone()

boolean void

finalize()

final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

From interface android.os.Parcelable abstract int

describeContents()

abstract void writeToParcel

(

Parcel

arg0, int arg1)

Fields Public Methods public int getAliveDocumentsCount () public int getAliveNamespacesCount ()

Returns the number of namespaces that have at least one alive document in the current session's database.

Alive documents are documents that haven't been deleted and haven't exceeded the ttl as set in GenericDocument.Builder.setTtlMillis(long).

public long getSizeBytes ()

Returns the estimated size of the session's database in bytes.

public void writeToParcel (Parcel dest, int flags)

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`StorageInfo` provides statistics about the AppSearch session's storage, such as document and namespace counts, and database size."],["It's the response class for `AppSearchClient#getStorageInfo`, giving insights into the current state of the AppSearch data."],["Developers can use `StorageInfo` to understand storage usage and potentially optimize their AppSearch implementation."],["This class includes methods like `getAliveDocumentsCount`, `getAliveNamespacesCount`, and `getSizeBytes` to retrieve specific storage metrics."],["`StorageInfo` is Parcelable, making it suitable for transferring data between components or processes within an Android application."]]],["`StorageInfo` provides data about the state of an AppSearch session. Key information includes `getAliveDocumentsCount`, which returns the number of undeleted, non-expired documents; `getAliveNamespacesCount`, which indicates how many namespaces contain these alive documents; and `getSizeBytes`, which shows the estimated database size. Additionally, the `CREATOR` field and `writeToParcel` method are available for implementing Parcelable functionalities. A `StorageInfo.Builder` nested class facilitates object creation.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4