public class

PutDocumentStats.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.localstorage.stats.PutDocumentStats.Builder

Overview

Builder for PutDocumentStats.

Summary

Constructors
publicBuilder(java.lang.String packageName, java.lang.String database)

Builder for PutDocumentStats

Methods
public PutDocumentStatsbuild()

Creates a new PutDocumentStats object from the contents of this PutDocumentStats.Builder instance.

public PutDocumentStats.BuildersetGenerateDocumentProtoLatencyMillis(int generateDocumentProtoLatencyMillis)

Sets how much time we spend for generating document proto, in milliseconds.

public PutDocumentStats.BuildersetNativeDocumentSizeBytes(int nativeDocumentSizeBytes)

Sets document size, in bytes.

public PutDocumentStats.BuildersetNativeDocumentStoreLatencyMillis(int nativeDocumentStoreLatencyMillis)

Sets how much time we spend on document store, in milliseconds.

public PutDocumentStats.BuildersetNativeIndexLatencyMillis(int nativeIndexLatencyMillis)

Sets the native index latency, in milliseconds.

public PutDocumentStats.BuildersetNativeIndexMergeLatencyMillis(int nativeIndexMergeLatencyMillis)

Sets how much time we spend on merging indices, in milliseconds.

public PutDocumentStats.BuildersetNativeIntegerIndexLatencyMillis(int nativeIntegerIndexLatencyMillis)

Sets the native integer indexing time, in millis.

public PutDocumentStats.BuildersetNativeLatencyMillis(int nativeLatencyMillis)

Sets the native latency, in milliseconds.

public PutDocumentStats.BuildersetNativeLiteIndexSortLatencyMillis(int nativeLiteIndexSortLatencyMillis)

Sets the native lite index sort latency, in millis.

public PutDocumentStats.BuildersetNativeNumTokensIndexed(int nativeNumTokensIndexed)

Sets number of tokens indexed in native.

public PutDocumentStats.BuildersetNativeQualifiedIdJoinIndexLatencyMillis(int nativeQualifiedIdJoinIndexLatencyMillis)

Sets the native qualified id indexing time, in millis.

public PutDocumentStats.BuildersetNativeTermIndexLatencyMillis(int nativeTermIndexLatencyMillis)

Sets the native term indexing time, in millis.

public PutDocumentStats.BuildersetRewriteDocumentTypesLatencyMillis(int rewriteDocumentTypesLatencyMillis)

Sets how much time we spend for rewriting types and namespaces in document, in milliseconds.

public PutDocumentStats.BuildersetStatusCode(int statusCode)

Sets the status code.

public PutDocumentStats.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(java.lang.String packageName, java.lang.String database)

Builder for PutDocumentStats

Methods

public PutDocumentStats.Builder setStatusCode(int statusCode)

Sets the status code.

public PutDocumentStats.Builder setTotalLatencyMillis(int totalLatencyMillis)

Sets total latency in millis.

public PutDocumentStats.Builder setGenerateDocumentProtoLatencyMillis(int generateDocumentProtoLatencyMillis)

Sets how much time we spend for generating document proto, in milliseconds.

public PutDocumentStats.Builder setRewriteDocumentTypesLatencyMillis(int rewriteDocumentTypesLatencyMillis)

Sets how much time we spend for rewriting types and namespaces in document, in milliseconds.

public PutDocumentStats.Builder setNativeLatencyMillis(int nativeLatencyMillis)

Sets the native latency, in milliseconds.

public PutDocumentStats.Builder setNativeDocumentStoreLatencyMillis(int nativeDocumentStoreLatencyMillis)

Sets how much time we spend on document store, in milliseconds.

public PutDocumentStats.Builder setNativeIndexLatencyMillis(int nativeIndexLatencyMillis)

Sets the native index latency, in milliseconds.

public PutDocumentStats.Builder setNativeIndexMergeLatencyMillis(int nativeIndexMergeLatencyMillis)

Sets how much time we spend on merging indices, in milliseconds.

public PutDocumentStats.Builder setNativeDocumentSizeBytes(int nativeDocumentSizeBytes)

Sets document size, in bytes.

public PutDocumentStats.Builder setNativeNumTokensIndexed(int nativeNumTokensIndexed)

Sets number of tokens indexed in native.

public PutDocumentStats.Builder setNativeTermIndexLatencyMillis(int nativeTermIndexLatencyMillis)

Sets the native term indexing time, in millis.

public PutDocumentStats.Builder setNativeIntegerIndexLatencyMillis(int nativeIntegerIndexLatencyMillis)

Sets the native integer indexing time, in millis.

public PutDocumentStats.Builder setNativeQualifiedIdJoinIndexLatencyMillis(int nativeQualifiedIdJoinIndexLatencyMillis)

Sets the native qualified id indexing time, in millis.

public PutDocumentStats.Builder setNativeLiteIndexSortLatencyMillis(int nativeLiteIndexSortLatencyMillis)

Sets the native lite index sort latency, in millis.

public PutDocumentStats build()

Creates a new PutDocumentStats object from the contents of this PutDocumentStats.Builder instance.