Class Point

  • All Implemented Interfaces:
    com.yahoo.jdisc.Metric.Context

    public final class Point
    extends Object
    implements com.yahoo.jdisc.Metric.Context
    An efficiently comparable point in a sparse vector space.
    Author:
    steinar
    • Constructor Detail

      • Point

        public Point​(Map<String,​?> properties)
    • Method Detail

      • emptyPoint

        public static Point emptyPoint()
        the canonical 0-dimensional Point.
      • hashCode

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

        public List<Value> location()
        Get an immutable list view of the values for each dimension.
      • dimensions

        public List<String> dimensions()
        Get an immutable list view of the names of each dimension.
      • dimensionality

        public int dimensionality()
        Get the number of dimensions defined for this Point, i.e. the size of the collection returned by dimensions().