Class IndexConfig


  • public class IndexConfig
    extends Object
    • Constructor Detail

      • IndexConfig

        protected IndexConfig​(int dimensions)
    • Method Detail

      • create

        public IndexConfig create​(int dimensions)
      • setDimensions

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

        public void 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.

        This setting works only for kd-trees.

      • getDimensions

        public int getDimensions()
      • getDefensiveKeyCopy

        public boolean getDefensiveKeyCopy()