public static enum BucketingService.Period extends Enum<BucketingService.Period>
| Enum Constant and Description |
|---|
DAYS |
HOURS |
MINUTES |
MONTHS |
SECONDS |
WEEKS |
| Modifier and Type | Method and Description |
|---|---|
static long |
getBucketTimestamp(long ms,
BucketingService.Period p) |
protected abstract long |
getFraction() |
static List<Long> |
getTimestampsBetween(BucketingService.Period p,
long startMs,
long endMs) |
static BucketingService.Period |
readFrom(String val) |
static BucketingService.Period |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BucketingService.Period[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BucketingService.Period SECONDS
public static final BucketingService.Period MINUTES
public static final BucketingService.Period HOURS
public static final BucketingService.Period DAYS
public static final BucketingService.Period WEEKS
public static final BucketingService.Period MONTHS
public static BucketingService.Period[] values()
for (BucketingService.Period c : BucketingService.Period.values()) System.out.println(c);
public static BucketingService.Period valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected abstract long getFraction()
public static List<Long> getTimestampsBetween(BucketingService.Period p, long startMs, long endMs)
public static long getBucketTimestamp(long ms,
BucketingService.Period p)
public static BucketingService.Period readFrom(String val)
Copyright © 2022 continual.io. All rights reserved.