Interface NearestNeighborQuery.ParametersOrBuilder (3.41.0)

public static interface NearestNeighborQuery.ParametersOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getApproximateNeighborCandidates()

public abstract int getApproximateNeighborCandidates()

Optional. The number of neighbors to find via approximate search before exact reordering is performed; if set, this value must be > neighbor_count.

int32 approximate_neighbor_candidates = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The approximateNeighborCandidates.

getLeafNodesSearchFraction()

public abstract double getLeafNodesSearchFraction()

Optional. The fraction of the number of leaves to search, set at query time allows user to tune search performance. This value increase result in both search accuracy and latency increase. The value should be between 0.0 and 1.0.

double leaf_nodes_search_fraction = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
double

The leafNodesSearchFraction.