public class

SchemaMigrationStats.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.localstorage.stats.SchemaMigrationStats.Builder

Overview

Builder for SchemaMigrationStats.

Summary

Constructors
publicBuilder()

Methods
public SchemaMigrationStatsbuild()

Builds a new SchemaMigrationStats from the SchemaMigrationStats.Builder.

public SchemaMigrationStats.BuildersetFirstSetSchemaLatencyMillis(int firstSetSchemaLatencyMillis)

Sets latency of first SetSchema action in milliseconds.

public SchemaMigrationStats.BuildersetGetSchemaLatencyMillis(int getSchemaLatencyMillis)

Sets latency for the GetSchema action in milliseconds.

public SchemaMigrationStats.BuildersetMigratedDocumentCount(int migratedDocumentCount)

Sets number of migrated documents.

public SchemaMigrationStats.BuildersetQueryAndTransformLatencyMillis(int queryAndTransformLatencyMillis)

Sets latency for querying all documents that need to be migrated to new version and transforming documents to new version in milliseconds.

public SchemaMigrationStats.BuildersetSavedDocumentCount(int savedDocumentCount)

Sets number of updated documents which are saved in Icing lib.

public SchemaMigrationStats.BuildersetSaveDocumentLatencyMillis(int saveDocumentLatencyMillis)

Sets latency for putting migrated document to Icing lib in milliseconds.

public SchemaMigrationStats.BuildersetSecondSetSchemaLatencyMillis(int secondSetSchemaLatencyMillis)

Sets latency of second SetSchema action in milliseconds.

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

Constructors

public Builder()

Methods

public SchemaMigrationStats.Builder setGetSchemaLatencyMillis(int getSchemaLatencyMillis)

Sets latency for the GetSchema action in milliseconds.

public SchemaMigrationStats.Builder setQueryAndTransformLatencyMillis(int queryAndTransformLatencyMillis)

Sets latency for querying all documents that need to be migrated to new version and transforming documents to new version in milliseconds.

public SchemaMigrationStats.Builder setFirstSetSchemaLatencyMillis(int firstSetSchemaLatencyMillis)

Sets latency of first SetSchema action in milliseconds.

public SchemaMigrationStats.Builder setSecondSetSchemaLatencyMillis(int secondSetSchemaLatencyMillis)

Sets latency of second SetSchema action in milliseconds.

public SchemaMigrationStats.Builder setSaveDocumentLatencyMillis(int saveDocumentLatencyMillis)

Sets latency for putting migrated document to Icing lib in milliseconds.

public SchemaMigrationStats.Builder setMigratedDocumentCount(int migratedDocumentCount)

Sets number of migrated documents.

public SchemaMigrationStats.Builder setSavedDocumentCount(int savedDocumentCount)

Sets number of updated documents which are saved in Icing lib.

public SchemaMigrationStats build()

Builds a new SchemaMigrationStats from the SchemaMigrationStats.Builder.