Class Collections.OptimizersConfigDiff
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.metaloom.qdrant.client.grpc.proto.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
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeqdrant.OptimizersConfigDiffNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongTarget amount of segments optimizer will try to keep.doubleThe minimal fraction of deleted vectors in a segment, required to perform segment optimizationstatic final com.google.protobuf.Descriptors.DescriptorlongInterval between forced flushes.longMaximum size (in KiloBytes) of vectors allowed for plain index.longMax number of threads, which can be used for optimization.longDo not create segments larger this size (in KiloBytes).longMaximum size (in KiloBytes) of vectors to store in-memory per segment.com.google.protobuf.Parser<Collections.OptimizersConfigDiff>intfinal com.google.protobuf.UnknownFieldSetlongThe minimal number of vectors in a segment, required to perform segment optimizationbooleanTarget amount of segments optimizer will try to keep.booleanThe minimal fraction of deleted vectors in a segment, required to perform segment optimizationbooleanInterval between forced flushes.inthashCode()booleanMaximum size (in KiloBytes) of vectors allowed for plain index.booleanMax number of threads, which can be used for optimization.booleanDo not create segments larger this size (in KiloBytes).booleanMaximum size (in KiloBytes) of vectors to store in-memory per segment.booleanThe minimal number of vectors in a segment, required to perform segment optimizationprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Collections.OptimizersConfigDiff prototype) protected Collections.OptimizersConfigDiff.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, 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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein 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:
hasDeletedThresholdin 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:
getDeletedThresholdin 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:
hasVacuumMinVectorNumberin 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:
getVacuumMinVectorNumberin interfaceCollections.OptimizersConfigDiffOrBuilder- Returns:
- The vacuumMinVectorNumber.
-
hasDefaultSegmentNumber
public boolean hasDefaultSegmentNumber()Target amount of segments 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 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:
hasDefaultSegmentNumberin interfaceCollections.OptimizersConfigDiffOrBuilder- Returns:
- Whether the defaultSegmentNumber field is set.
-
getDefaultSegmentNumber
public long getDefaultSegmentNumber()Target amount of segments 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 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:
getDefaultSegmentNumberin 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 indexation speed have more priority for your - make this parameter lower. If search speed is more important - make this parameter higher. Note: 1Kb = 1 vector of size 256
optional uint64 max_segment_size = 4;- Specified by:
hasMaxSegmentSizein 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 indexation speed have more priority for your - make this parameter lower. If search speed is more important - make this parameter higher. Note: 1Kb = 1 vector of size 256
optional uint64 max_segment_size = 4;- Specified by:
getMaxSegmentSizein 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. To enable memmap storage, lower the threshold Note: 1Kb = 1 vector of size 256
optional uint64 memmap_threshold = 5;- Specified by:
hasMemmapThresholdin 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. To enable memmap storage, lower the threshold Note: 1Kb = 1 vector of size 256
optional uint64 memmap_threshold = 5;- Specified by:
getMemmapThresholdin interfaceCollections.OptimizersConfigDiffOrBuilder- Returns:
- The memmapThreshold.
-
hasIndexingThreshold
public boolean hasIndexingThreshold()Maximum size (in KiloBytes) of vectors allowed for plain index. Default value based on https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md Note: 1Kb = 1 vector of size 256
optional uint64 indexing_threshold = 6;- Specified by:
hasIndexingThresholdin interfaceCollections.OptimizersConfigDiffOrBuilder- Returns:
- Whether the indexingThreshold field is set.
-
getIndexingThreshold
public long getIndexingThreshold()Maximum size (in KiloBytes) of vectors allowed for plain index. Default value based on https://github.com/google-research/google-research/blob/master/scann/docs/algorithms.md Note: 1Kb = 1 vector of size 256
optional uint64 indexing_threshold = 6;- Specified by:
getIndexingThresholdin interfaceCollections.OptimizersConfigDiffOrBuilder- Returns:
- The indexingThreshold.
-
hasFlushIntervalSec
public boolean hasFlushIntervalSec()Interval between forced flushes.
optional uint64 flush_interval_sec = 7;- Specified by:
hasFlushIntervalSecin 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:
getFlushIntervalSecin 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:
hasMaxOptimizationThreadsin 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:
getMaxOptimizationThreadsin interfaceCollections.OptimizersConfigDiffOrBuilder- Returns:
- The maxOptimizationThreads.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Collections.OptimizersConfigDiff.Builder newBuilder(Collections.OptimizersConfigDiff prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Collections.OptimizersConfigDiff.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-