Package com.yahoo.metrics.simple
Class Point
- java.lang.Object
-
- com.yahoo.metrics.simple.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
-
-
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.List<String>
dimensions()
Get an immutable list view of the names of each dimension.static Point
emptyPoint()
the canonical 0-dimensional Point.boolean
equals(Object obj)
int
hashCode()
List<Value>
location()
Get an immutable list view of the values for each dimension.String
toString()
-
-
-
Method Detail
-
emptyPoint
public static Point emptyPoint()
the canonical 0-dimensional Point.
-
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 bydimensions()
.
-
-