public static class IvfBuildParams.Builder extends Object
| Constructor and Description |
|---|
Builder()
Parameters for building an IVF index.
|
| Modifier and Type | Method and Description |
|---|---|
IvfBuildParams |
build() |
IvfBuildParams.Builder |
setMaxIters(int maxIters) |
IvfBuildParams.Builder |
setNumPartitions(int numPartitions) |
IvfBuildParams.Builder |
setSampleRate(int sampleRate)
Set the sample rate for training IVF centroids IVF centroids are trained from a sample of the
data (determined by the sample_rate).
|
IvfBuildParams.Builder |
setShufflePartitionBatches(int shufflePartitionBatches)
Sets the number of batches, using the row group size of the dataset, to include in each
shuffle partition.
|
IvfBuildParams.Builder |
setShufflePartitionConcurrency(int shufflePartitionConcurrency)
Set the number of shuffle partitions to process concurrently.
|
IvfBuildParams.Builder |
setUseResidual(boolean useResidual)
Set whether to use residual for k-means clustering.
|
public Builder()
public IvfBuildParams.Builder setNumPartitions(int numPartitions)
numPartitions - set the number of partitions of IVF (Inverted File Index) Default to 32public IvfBuildParams.Builder setMaxIters(int maxIters)
maxIters - set the maximum number of iterations for k-means clustering. Default to 50.public IvfBuildParams.Builder setSampleRate(int sampleRate)
sampleRate - set the sample rate for training IVF centroidspublic IvfBuildParams.Builder setShufflePartitionBatches(int shufflePartitionBatches)
shufflePartitionBatches - the number of batches to include in shufflepublic IvfBuildParams.Builder setShufflePartitionConcurrency(int shufflePartitionConcurrency)
shufflePartitionConcurrency - the number of shuffle partitions to process concurrentlypublic IvfBuildParams.Builder setUseResidual(boolean useResidual)
useResidual - whether to use residual for k-means clusteringpublic IvfBuildParams build()
Copyright © 2025. All rights reserved.