public class BUCKETIZECALENDAR extends NamedWarpScriptFunction implements WarpScriptStackFunction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DURATION_ATTRIBUTE_KEY |
static org.joda.time.Instant |
EPOCH |
static java.lang.String |
OFFSET_ATTRIBUTE_KEY |
static java.lang.String |
TIMEZONE_ATTRIBUTE_KEY |
| Constructor and Description |
|---|
BUCKETIZECALENDAR() |
BUCKETIZECALENDAR(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
static long |
addNonNegativePeriod(long origin,
ADDDURATION.ReadWritablePeriodWithSubSecondOffset bucketperiod,
org.joda.time.DateTimeZone dtz,
long N) |
java.lang.Object |
apply(WarpScriptStack stack) |
static GeoTimeSerie |
durationBucketize(GeoTimeSerie gts,
ADDDURATION.ReadWritablePeriodWithSubSecondOffset bucketperiod,
org.joda.time.DateTimeZone dtz,
long bucketcount,
long lastbucket,
long lastbucketIndex,
java.lang.Object aggregator,
long maxbuckets,
WarpScriptStack stack) |
static java.lang.String |
getDefaultName() |
static boolean |
isDurationBucketized(GeoTimeSerie gts) |
getName, refSnapshot, setName, toStringpublic static final java.lang.String DURATION_ATTRIBUTE_KEY
public static final java.lang.String OFFSET_ATTRIBUTE_KEY
public static final java.lang.String TIMEZONE_ATTRIBUTE_KEY
public static final org.joda.time.Instant EPOCH
public BUCKETIZECALENDAR(java.lang.String name)
public BUCKETIZECALENDAR()
public static java.lang.String getDefaultName()
public java.lang.Object apply(WarpScriptStack stack) throws WarpScriptException
apply in interface WarpScriptStackFunctionWarpScriptExceptionpublic static long addNonNegativePeriod(long origin,
ADDDURATION.ReadWritablePeriodWithSubSecondOffset bucketperiod,
org.joda.time.DateTimeZone dtz,
long N)
throws WarpScriptException
WarpScriptExceptionpublic static GeoTimeSerie durationBucketize(GeoTimeSerie gts, ADDDURATION.ReadWritablePeriodWithSubSecondOffset bucketperiod, org.joda.time.DateTimeZone dtz, long bucketcount, long lastbucket, long lastbucketIndex, java.lang.Object aggregator, long maxbuckets, WarpScriptStack stack) throws WarpScriptException
WarpScriptExceptionpublic static boolean isDurationBucketized(GeoTimeSerie gts)