Package io.qdrant.client.grpc
Class Collections.OptimizersConfigDiff.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
io.qdrant.client.grpc.Collections.OptimizersConfigDiff.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Collections.OptimizersConfigDiffOrBuilder
,Cloneable
- Enclosing class:
- Collections.OptimizersConfigDiff
public static final class Collections.OptimizersConfigDiff.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
implements Collections.OptimizersConfigDiffOrBuilder
Protobuf type
qdrant.OptimizersConfigDiff
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Target amount of segments the optimizer will try to keep.The minimal fraction of deleted vectors in a segment, required to perform segment optimizationclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Interval between forced flushes.Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing Default value is 20,000, based on <https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md>.Max number of threads, which can be used for optimization.Do not create segments larger this size (in kilobytes).Maximum size (in kilobytes) of vectors to store in-memory per segment.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The minimal number of vectors in a segment, required to perform segment optimizationclone()
long
Target amount of segments the optimizer will try to keep.double
The minimal fraction of deleted vectors in a segment, required to perform segment optimizationstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
Interval between forced flushes.long
Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing Default value is 20,000, based on <https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md>.long
Max number of threads, which can be used for optimization.long
Do not create segments larger this size (in kilobytes).long
Maximum size (in kilobytes) of vectors to store in-memory per segment.long
The minimal number of vectors in a segment, required to perform segment optimizationboolean
Target amount of segments the optimizer will try to keep.boolean
The minimal fraction of deleted vectors in a segment, required to perform segment optimizationboolean
Interval between forced flushes.boolean
Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing Default value is 20,000, based on <https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md>.boolean
Max number of threads, which can be used for optimization.boolean
Do not create segments larger this size (in kilobytes).boolean
Maximum size (in kilobytes) of vectors to store in-memory per segment.boolean
The minimal number of vectors in a segment, required to perform segment optimizationprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setDefaultSegmentNumber
(long value) Target amount of segments the optimizer will try to keep.setDeletedThreshold
(double value) The minimal fraction of deleted vectors in a segment, required to perform segment optimizationsetFlushIntervalSec
(long value) Interval between forced flushes.setIndexingThreshold
(long value) Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing Default value is 20,000, based on <https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md>.setMaxOptimizationThreads
(long value) Max number of threads, which can be used for optimization.setMaxSegmentSize
(long value) Do not create segments larger this size (in kilobytes).setMemmapThreshold
(long value) Maximum size (in kilobytes) of vectors to store in-memory per segment.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setVacuumMinVectorNumber
(long value) The minimal number of vectors in a segment, required to perform segment optimizationMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
setField
public Collections.OptimizersConfigDiff.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
clearField
public Collections.OptimizersConfigDiff.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
clearOneof
public Collections.OptimizersConfigDiff.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
setRepeatedField
public Collections.OptimizersConfigDiff.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
addRepeatedField
public Collections.OptimizersConfigDiff.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Collections.OptimizersConfigDiff.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
mergeFrom
public Collections.OptimizersConfigDiff.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Collections.OptimizersConfigDiff.Builder>
- Throws:
IOException
-
hasDeletedThreshold
public boolean hasDeletedThreshold()The minimal fraction of deleted vectors in a segment, required to perform segment optimization
optional double deleted_threshold = 1;
- Specified by:
hasDeletedThreshold
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- Whether the deletedThreshold field is set.
-
getDeletedThreshold
public double getDeletedThreshold()The minimal fraction of deleted vectors in a segment, required to perform segment optimization
optional double deleted_threshold = 1;
- Specified by:
getDeletedThreshold
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- The deletedThreshold.
-
setDeletedThreshold
The minimal fraction of deleted vectors in a segment, required to perform segment optimization
optional double deleted_threshold = 1;
- Parameters:
value
- The deletedThreshold to set.- Returns:
- This builder for chaining.
-
clearDeletedThreshold
The minimal fraction of deleted vectors in a segment, required to perform segment optimization
optional double deleted_threshold = 1;
- Returns:
- This builder for chaining.
-
hasVacuumMinVectorNumber
public boolean hasVacuumMinVectorNumber()The minimal number of vectors in a segment, required to perform segment optimization
optional uint64 vacuum_min_vector_number = 2;
- Specified by:
hasVacuumMinVectorNumber
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- Whether the vacuumMinVectorNumber field is set.
-
getVacuumMinVectorNumber
public long getVacuumMinVectorNumber()The minimal number of vectors in a segment, required to perform segment optimization
optional uint64 vacuum_min_vector_number = 2;
- Specified by:
getVacuumMinVectorNumber
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- The vacuumMinVectorNumber.
-
setVacuumMinVectorNumber
The minimal number of vectors in a segment, required to perform segment optimization
optional uint64 vacuum_min_vector_number = 2;
- Parameters:
value
- The vacuumMinVectorNumber to set.- Returns:
- This builder for chaining.
-
clearVacuumMinVectorNumber
The minimal number of vectors in a segment, required to perform segment optimization
optional uint64 vacuum_min_vector_number = 2;
- Returns:
- This builder for chaining.
-
hasDefaultSegmentNumber
public boolean hasDefaultSegmentNumber()Target amount of segments the optimizer will try to keep. Real amount of segments may vary depending on multiple parameters: - Amount of stored points. - Current write RPS. It is recommended to select the default number of segments as a factor of the number of search threads, so that each segment would be handled evenly by one of the threads.
optional uint64 default_segment_number = 3;
- Specified by:
hasDefaultSegmentNumber
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- Whether the defaultSegmentNumber field is set.
-
getDefaultSegmentNumber
public long getDefaultSegmentNumber()Target amount of segments the optimizer will try to keep. Real amount of segments may vary depending on multiple parameters: - Amount of stored points. - Current write RPS. It is recommended to select the default number of segments as a factor of the number of search threads, so that each segment would be handled evenly by one of the threads.
optional uint64 default_segment_number = 3;
- Specified by:
getDefaultSegmentNumber
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- The defaultSegmentNumber.
-
setDefaultSegmentNumber
Target amount of segments the optimizer will try to keep. Real amount of segments may vary depending on multiple parameters: - Amount of stored points. - Current write RPS. It is recommended to select the default number of segments as a factor of the number of search threads, so that each segment would be handled evenly by one of the threads.
optional uint64 default_segment_number = 3;
- Parameters:
value
- The defaultSegmentNumber to set.- Returns:
- This builder for chaining.
-
clearDefaultSegmentNumber
Target amount of segments the optimizer will try to keep. Real amount of segments may vary depending on multiple parameters: - Amount of stored points. - Current write RPS. It is recommended to select the default number of segments as a factor of the number of search threads, so that each segment would be handled evenly by one of the threads.
optional uint64 default_segment_number = 3;
- Returns:
- This builder for chaining.
-
hasMaxSegmentSize
public boolean hasMaxSegmentSize()Do not create segments larger this size (in kilobytes). Large segments might require disproportionately long indexation times, therefore it makes sense to limit the size of segments. If indexing speed is more important - make this parameter lower. If search speed is more important - make this parameter higher. Note: 1Kb = 1 vector of size 256 If not set, will be automatically selected considering the number of available CPUs.
optional uint64 max_segment_size = 4;
- Specified by:
hasMaxSegmentSize
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- Whether the maxSegmentSize field is set.
-
getMaxSegmentSize
public long getMaxSegmentSize()Do not create segments larger this size (in kilobytes). Large segments might require disproportionately long indexation times, therefore it makes sense to limit the size of segments. If indexing speed is more important - make this parameter lower. If search speed is more important - make this parameter higher. Note: 1Kb = 1 vector of size 256 If not set, will be automatically selected considering the number of available CPUs.
optional uint64 max_segment_size = 4;
- Specified by:
getMaxSegmentSize
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- The maxSegmentSize.
-
setMaxSegmentSize
Do not create segments larger this size (in kilobytes). Large segments might require disproportionately long indexation times, therefore it makes sense to limit the size of segments. If indexing speed is more important - make this parameter lower. If search speed is more important - make this parameter higher. Note: 1Kb = 1 vector of size 256 If not set, will be automatically selected considering the number of available CPUs.
optional uint64 max_segment_size = 4;
- Parameters:
value
- The maxSegmentSize to set.- Returns:
- This builder for chaining.
-
clearMaxSegmentSize
Do not create segments larger this size (in kilobytes). Large segments might require disproportionately long indexation times, therefore it makes sense to limit the size of segments. If indexing speed is more important - make this parameter lower. If search speed is more important - make this parameter higher. Note: 1Kb = 1 vector of size 256 If not set, will be automatically selected considering the number of available CPUs.
optional uint64 max_segment_size = 4;
- Returns:
- This builder for chaining.
-
hasMemmapThreshold
public boolean hasMemmapThreshold()Maximum size (in kilobytes) of vectors to store in-memory per segment. Segments larger than this threshold will be stored as read-only memmaped file. Memmap storage is disabled by default, to enable it, set this threshold to a reasonable value. To disable memmap storage, set this to `0`. Note: 1Kb = 1 vector of size 256
optional uint64 memmap_threshold = 5;
- Specified by:
hasMemmapThreshold
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- Whether the memmapThreshold field is set.
-
getMemmapThreshold
public long getMemmapThreshold()Maximum size (in kilobytes) of vectors to store in-memory per segment. Segments larger than this threshold will be stored as read-only memmaped file. Memmap storage is disabled by default, to enable it, set this threshold to a reasonable value. To disable memmap storage, set this to `0`. Note: 1Kb = 1 vector of size 256
optional uint64 memmap_threshold = 5;
- Specified by:
getMemmapThreshold
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- The memmapThreshold.
-
setMemmapThreshold
Maximum size (in kilobytes) of vectors to store in-memory per segment. Segments larger than this threshold will be stored as read-only memmaped file. Memmap storage is disabled by default, to enable it, set this threshold to a reasonable value. To disable memmap storage, set this to `0`. Note: 1Kb = 1 vector of size 256
optional uint64 memmap_threshold = 5;
- Parameters:
value
- The memmapThreshold to set.- Returns:
- This builder for chaining.
-
clearMemmapThreshold
Maximum size (in kilobytes) of vectors to store in-memory per segment. Segments larger than this threshold will be stored as read-only memmaped file. Memmap storage is disabled by default, to enable it, set this threshold to a reasonable value. To disable memmap storage, set this to `0`. Note: 1Kb = 1 vector of size 256
optional uint64 memmap_threshold = 5;
- Returns:
- This builder for chaining.
-
hasIndexingThreshold
public boolean hasIndexingThreshold()Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing Default value is 20,000, based on <https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md>. To disable vector indexing, set to `0`. Note: 1kB = 1 vector of size 256.
optional uint64 indexing_threshold = 6;
- Specified by:
hasIndexingThreshold
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- Whether the indexingThreshold field is set.
-
getIndexingThreshold
public long getIndexingThreshold()Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing Default value is 20,000, based on <https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md>. To disable vector indexing, set to `0`. Note: 1kB = 1 vector of size 256.
optional uint64 indexing_threshold = 6;
- Specified by:
getIndexingThreshold
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- The indexingThreshold.
-
setIndexingThreshold
Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing Default value is 20,000, based on <https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md>. To disable vector indexing, set to `0`. Note: 1kB = 1 vector of size 256.
optional uint64 indexing_threshold = 6;
- Parameters:
value
- The indexingThreshold to set.- Returns:
- This builder for chaining.
-
clearIndexingThreshold
Maximum size (in kilobytes) of vectors allowed for plain index, exceeding this threshold will enable vector indexing Default value is 20,000, based on <https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md>. To disable vector indexing, set to `0`. Note: 1kB = 1 vector of size 256.
optional uint64 indexing_threshold = 6;
- Returns:
- This builder for chaining.
-
hasFlushIntervalSec
public boolean hasFlushIntervalSec()Interval between forced flushes.
optional uint64 flush_interval_sec = 7;
- Specified by:
hasFlushIntervalSec
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- Whether the flushIntervalSec field is set.
-
getFlushIntervalSec
public long getFlushIntervalSec()Interval between forced flushes.
optional uint64 flush_interval_sec = 7;
- Specified by:
getFlushIntervalSec
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- The flushIntervalSec.
-
setFlushIntervalSec
Interval between forced flushes.
optional uint64 flush_interval_sec = 7;
- Parameters:
value
- The flushIntervalSec to set.- Returns:
- This builder for chaining.
-
clearFlushIntervalSec
Interval between forced flushes.
optional uint64 flush_interval_sec = 7;
- Returns:
- This builder for chaining.
-
hasMaxOptimizationThreads
public boolean hasMaxOptimizationThreads()Max number of threads, which can be used for optimization. If 0 - `NUM_CPU - 1` will be used
optional uint64 max_optimization_threads = 8;
- Specified by:
hasMaxOptimizationThreads
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- Whether the maxOptimizationThreads field is set.
-
getMaxOptimizationThreads
public long getMaxOptimizationThreads()Max number of threads, which can be used for optimization. If 0 - `NUM_CPU - 1` will be used
optional uint64 max_optimization_threads = 8;
- Specified by:
getMaxOptimizationThreads
in interfaceCollections.OptimizersConfigDiffOrBuilder
- Returns:
- The maxOptimizationThreads.
-
setMaxOptimizationThreads
Max number of threads, which can be used for optimization. If 0 - `NUM_CPU - 1` will be used
optional uint64 max_optimization_threads = 8;
- Parameters:
value
- The maxOptimizationThreads to set.- Returns:
- This builder for chaining.
-
clearMaxOptimizationThreads
Max number of threads, which can be used for optimization. If 0 - `NUM_CPU - 1` will be used
optional uint64 max_optimization_threads = 8;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final Collections.OptimizersConfigDiff.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-
mergeUnknownFields
public final Collections.OptimizersConfigDiff.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Collections.OptimizersConfigDiff.Builder>
-