Class HnswFlags


  • public final class HnswFlags
    extends java.lang.Object
    Flags as a part of the HNSW configuration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DebugLogs
      Enables debug logs.
      static int DebugLogsDetailed
      Enables "high volume" debug logs, e.g.
      static int ReparationLimitCandidates
      If the speed of removing nodes becomes a concern in your use case, you can speed it up by setting this flag.
      static int VectorCacheSimdPaddingOff
      Padding for SIMD is enabled by default, which uses more memory but may be faster.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private HnswFlags()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DebugLogsDetailed

        public static final int DebugLogsDetailed
        Enables "high volume" debug logs, e.g. individual gets/puts.
        See Also:
        Constant Field Values
      • VectorCacheSimdPaddingOff

        public static final int VectorCacheSimdPaddingOff
        Padding for SIMD is enabled by default, which uses more memory but may be faster. This flag turns it off.
        See Also:
        Constant Field Values
      • ReparationLimitCandidates

        public static final int ReparationLimitCandidates
        If the speed of removing nodes becomes a concern in your use case, you can speed it up by setting this flag. By default, repairing the graph after node removals creates more connections to improve the graph's quality. The extra costs for this are relatively low (e.g. vs. regular indexing), and thus the default is recommended.
        See Also:
        Constant Field Values
    • Constructor Detail

      • HnswFlags

        private HnswFlags()