Class IndexConfig


  • public class IndexConfig
    extends Object
    • Constructor Detail

      • IndexConfig

        protected IndexConfig​(int dimensions)
    • Method Detail

      • create

        public static IndexConfig create​(int dimensions)
      • setDimensions

        public IndexConfig setDimensions​(int dimensions)
        Number of dimensions.
        Parameters:
        dimensions - Number of dimensions of keys.
        Returns:
        this
      • setDefensiveKeyCopy

        public IndexConfig setDefensiveKeyCopy​(boolean defensiveKeyCopy)
        Parameters:
        defensiveKeyCopy - Defensive keys copying. If 'false', the kd-tree will store the passed in double[] keys internally (this reduces required memory). If 'true', the keys are copied in order to avoid accidental modification. The latter obviously requires more memory. Default is 'true'.

        This setting works only for kd-trees.

        Returns:
        this
      • getDimensions

        public int getDimensions()
      • getDefensiveKeyCopy

        public boolean getDefensiveKeyCopy()