Class RTree.Point

java.lang.Object
com.apple.foundationdb.async.rtree.RTree.Point
Enclosing class:
RTree

public static class RTree.Point extends Object
Class to capture an N-dimensional point. It wraps a Tuple mostly due to proximity with its serialization format and provides helpers for Euclidean operations. Note that the coordinates used here do not need to be numbers.
  • Constructor Details

    • Point

      public Point(@Nonnull Tuple coordinates)
  • Method Details

    • getCoordinates

      @Nonnull public Tuple getCoordinates()
    • getNumDimensions

      public int getNumDimensions()
    • getCoordinate

      @Nullable public Object getCoordinate(int dimension)
    • getCoordinateAsNumber

      @Nullable public Number getCoordinateAsNumber(int dimension)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object