Class Point

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

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

      Constructors 
      Constructor Description
      Point​(java.util.Map<java.lang.String,​?> properties)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int dimensionality()
      Get the number of dimensions defined for this Point, i.e.
      java.util.List<java.lang.String> dimensions()
      Get an immutable list view of the names of each dimension.
      static Point emptyPoint()
      the canonical 0-dimensional Point.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.util.List<Value> location()
      Get an immutable list view of the values for each dimension.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Point

        public Point​(java.util.Map<java.lang.String,​?> properties)
    • Method Detail

      • emptyPoint

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • location

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

        public java.util.List<java.lang.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().