Package io.qdrant.client.grpc
Class Collections.OptimizersConfigDiff
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.qdrant.client.grpc.Collections.OptimizersConfigDiff
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Collections.OptimizersConfigDiffOrBuilder
,Serializable
- Enclosing class:
- Collections
public static final class Collections.OptimizersConfigDiff
extends com.google.protobuf.GeneratedMessageV3
implements Collections.OptimizersConfigDiffOrBuilder
Protobuf type
qdrant.OptimizersConfigDiff
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Protobuf typeqdrant.OptimizersConfigDiff
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
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.com.google.protobuf.Parser<Collections.OptimizersConfigDiff>
int
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.int
hashCode()
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
newBuilder
(Collections.OptimizersConfigDiff prototype) protected Collections.OptimizersConfigDiff.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected Object
newInstance
(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom
(InputStream input) parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(byte[] data) parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(com.google.protobuf.ByteString data) parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(com.google.protobuf.CodedInputStream input) parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(InputStream input) parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(ByteBuffer data) parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Collections.OptimizersConfigDiff>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DELETED_THRESHOLD_FIELD_NUMBER
public static final int DELETED_THRESHOLD_FIELD_NUMBER- See Also:
-
VACUUM_MIN_VECTOR_NUMBER_FIELD_NUMBER
public static final int VACUUM_MIN_VECTOR_NUMBER_FIELD_NUMBER- See Also:
-
DEFAULT_SEGMENT_NUMBER_FIELD_NUMBER
public static final int DEFAULT_SEGMENT_NUMBER_FIELD_NUMBER- See Also:
-
MAX_SEGMENT_SIZE_FIELD_NUMBER
public static final int MAX_SEGMENT_SIZE_FIELD_NUMBER- See Also:
-
MEMMAP_THRESHOLD_FIELD_NUMBER
public static final int MEMMAP_THRESHOLD_FIELD_NUMBER- See Also:
-
INDEXING_THRESHOLD_FIELD_NUMBER
public static final int INDEXING_THRESHOLD_FIELD_NUMBER- See Also:
-
FLUSH_INTERVAL_SEC_FIELD_NUMBER
public static final int FLUSH_INTERVAL_SEC_FIELD_NUMBER- See Also:
-
MAX_OPTIMIZATION_THREADS_FIELD_NUMBER
public static final int MAX_OPTIMIZATION_THREADS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Collections.OptimizersConfigDiff parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Collections.OptimizersConfigDiff parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Collections.OptimizersConfigDiff parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Collections.OptimizersConfigDiff parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Collections.OptimizersConfigDiff parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Collections.OptimizersConfigDiff parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Collections.OptimizersConfigDiff parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Collections.OptimizersConfigDiff parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Collections.OptimizersConfigDiff parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Collections.OptimizersConfigDiff parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Collections.OptimizersConfigDiff parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Collections.OptimizersConfigDiff.Builder newBuilder(Collections.OptimizersConfigDiff prototype) -
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Collections.OptimizersConfigDiff.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-