Class SpatialPair<K,​V extends SpatialComparable>

  • All Implemented Interfaces:
    SpatialComparable

    public class SpatialPair<K,​V extends SpatialComparable>
    extends Pair<K,​V>
    implements SpatialComparable
    Defines the requirements for objects that can be indexed by a Spatial Index, which are spatial nodes or data objects.
    Since:
    0.4.0
    Author:
    Elke Achtert
    • Constructor Summary

      Constructors 
      Constructor Description
      SpatialPair​(K key, V spatial)
      Constructor: bundle a key and a spatial comparable
    • Constructor Detail

      • SpatialPair

        public SpatialPair​(K key,
                           V spatial)
        Constructor: bundle a key and a spatial comparable
        Parameters:
        key - key
        spatial - spatial value
    • Method Detail

      • getMin

        public double getMin​(int dimension)
        Description copied from interface: SpatialComparable
        Returns the minimum coordinate at the specified dimension.
        Specified by:
        getMin in interface SpatialComparable
        Parameters:
        dimension - the dimension for which the coordinate should be returned, where 0 ≤ dimension < getDimensionality()
        Returns:
        the minimum coordinate at the specified dimension
      • getMax

        public double getMax​(int dimension)
        Description copied from interface: SpatialComparable
        Returns the maximum coordinate at the specified dimension.
        Specified by:
        getMax in interface SpatialComparable
        Parameters:
        dimension - the dimension for which the coordinate should be returned, where 0 ≤ dimension < getDimensionality()
        Returns:
        the maximum coordinate at the specified dimension