public final class Buckets extends Object
getStart())getStep())getCount())
Instances can be created with the constructor Buckets(long, long, int) or with one of the factory methods:
end value.| Constructor and Description |
|---|
Buckets(long start,
long step,
int count) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static Buckets |
fromCount(long start,
long end,
int count)
Force bucket count.
|
static Buckets |
fromStep(long start,
long end,
long step)
Force bucket step.
|
long |
getBucketStart(int index) |
int |
getCount() |
int |
getIndex(long timestamp) |
long |
getStart() |
long |
getStep() |
int |
hashCode() |
String |
toString() |
public long getStart()
public long getStep()
public int getCount()
public int getIndex(long timestamp)
timestamp belongs topublic long getBucketStart(int index)
indexpublic static Buckets fromCount(long start, long end, int count)
end value.start - start timeend - end timecount - desired number of bucketsBuckets, starting at start, separated by count intervalsCopyright © 2014–2016 Red Hat, Inc.. All rights reserved.