Package com.yahoo.metrics.simple
Class Point
- java.lang.Object
-
- com.yahoo.metrics.simple.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()
-
-
-
Method Detail
-
emptyPoint
public static Point emptyPoint()
the canonical 0-dimensional Point.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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 bydimensions()
.
-
-