public class

OptimizeStats.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.localstorage.stats.OptimizeStats.Builder

Overview

Builder for RemoveStats.

Summary

Constructors
publicBuilder()

Methods
public OptimizeStatsbuild()

Creates a OptimizeStats.

public OptimizeStats.BuildersetDeletedDocumentCount(int deletedDocumentCount)

Sets number of documents deleted during the optimization.

public OptimizeStats.BuildersetDocumentStoreOptimizeLatencyMillis(int documentStoreOptimizeLatencyMillis)

Sets time used to optimize the document store.

public OptimizeStats.BuildersetExpiredDocumentCount(int expiredDocumentCount)

Sets number of documents expired during the optimization.

public OptimizeStats.BuildersetIndexRestorationLatencyMillis(int indexRestorationLatencyMillis)

Sets time used to restore the index.

public OptimizeStats.BuildersetNativeLatencyMillis(int nativeLatencyMillis)

Sets native latency in millis.

public OptimizeStats.BuildersetOriginalDocumentCount(int originalDocumentCount)

Sets number of documents before the optimization.

public OptimizeStats.BuildersetStatusCode(int statusCode)

Sets the status code.

public OptimizeStats.BuildersetStorageSizeAfterBytes(long storageSizeAfterBytes)

Sets storage size in bytes after optimization.

public OptimizeStats.BuildersetStorageSizeBeforeBytes(long storageSizeBeforeBytes)

Sets Storage size in bytes before optimization.

public OptimizeStats.BuildersetTimeSinceLastOptimizeMillis(long timeSinceLastOptimizeMillis)

Sets the amount the time since the last optimize ran calculated using wall clock time.

public OptimizeStats.BuildersetTotalLatencyMillis(int totalLatencyMillis)

Sets total latency in millis.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public OptimizeStats.Builder setStatusCode(int statusCode)

Sets the status code.

public OptimizeStats.Builder setTotalLatencyMillis(int totalLatencyMillis)

Sets total latency in millis.

public OptimizeStats.Builder setNativeLatencyMillis(int nativeLatencyMillis)

Sets native latency in millis.

public OptimizeStats.Builder setDocumentStoreOptimizeLatencyMillis(int documentStoreOptimizeLatencyMillis)

Sets time used to optimize the document store.

public OptimizeStats.Builder setIndexRestorationLatencyMillis(int indexRestorationLatencyMillis)

Sets time used to restore the index.

public OptimizeStats.Builder setOriginalDocumentCount(int originalDocumentCount)

Sets number of documents before the optimization.

public OptimizeStats.Builder setDeletedDocumentCount(int deletedDocumentCount)

Sets number of documents deleted during the optimization.

public OptimizeStats.Builder setExpiredDocumentCount(int expiredDocumentCount)

Sets number of documents expired during the optimization.

public OptimizeStats.Builder setStorageSizeBeforeBytes(long storageSizeBeforeBytes)

Sets Storage size in bytes before optimization.

public OptimizeStats.Builder setStorageSizeAfterBytes(long storageSizeAfterBytes)

Sets storage size in bytes after optimization.

public OptimizeStats.Builder setTimeSinceLastOptimizeMillis(long timeSinceLastOptimizeMillis)

Sets the amount the time since the last optimize ran calculated using wall clock time.

public OptimizeStats build()

Creates a OptimizeStats.