Package org.apache.beam.sdk.util
Class HistogramData.LinearBuckets
- java.lang.Object
-
- org.apache.beam.sdk.util.HistogramData.LinearBuckets
-
- All Implemented Interfaces:
java.io.Serializable
,HistogramData.BucketType
- Enclosing class:
- HistogramData
public abstract static class HistogramData.LinearBuckets extends java.lang.Object implements HistogramData.BucketType
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinearBuckets()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description double
getAccumulatedBucketSize(int endIndex)
int
getBucketIndex(double value)
double
getBucketSize(int index)
abstract int
getNumBuckets()
double
getRangeFrom()
double
getRangeTo()
abstract double
getStart()
abstract double
getWidth()
static HistogramData.LinearBuckets
of(double start, double width, int numBuckets)
-
-
-
Method Detail
-
getStart
public abstract double getStart()
-
getWidth
public abstract double getWidth()
-
getNumBuckets
public abstract int getNumBuckets()
- Specified by:
getNumBuckets
in interfaceHistogramData.BucketType
-
of
public static HistogramData.LinearBuckets of(double start, double width, int numBuckets)
-
getBucketIndex
public int getBucketIndex(double value)
- Specified by:
getBucketIndex
in interfaceHistogramData.BucketType
-
getBucketSize
public double getBucketSize(int index)
- Specified by:
getBucketSize
in interfaceHistogramData.BucketType
-
getAccumulatedBucketSize
public double getAccumulatedBucketSize(int endIndex)
- Specified by:
getAccumulatedBucketSize
in interfaceHistogramData.BucketType
-
getRangeFrom
public double getRangeFrom()
- Specified by:
getRangeFrom
in interfaceHistogramData.BucketType
-
getRangeTo
public double getRangeTo()
- Specified by:
getRangeTo
in interfaceHistogramData.BucketType
-
-