|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.otfeed.command.AggregationSpan
public class AggregationSpan
Represents aggregation time span.
Time span can range from 2 ticks, to years.
| Field Summary | |
|---|---|
int |
length
|
TimeUnitEnum |
units
|
| Constructor Summary | |
|---|---|
AggregationSpan(TimeUnitEnum units,
int length)
Creates a new aggreagation span. |
|
| Method Summary | |
|---|---|
static AggregationSpan |
days()
Returns a one-day aggregation span. |
static AggregationSpan |
days(int num)
Returns aggregation span measured in days. |
static AggregationSpan |
hours()
Returns a one-hour aggregation span. |
static AggregationSpan |
hours(int num)
Returns aggregation span measured in hours. |
static AggregationSpan |
minutes()
Returns a one-minute aggregation span. |
static AggregationSpan |
minutes(int num)
Returns aggregation span measured in minutes. |
static AggregationSpan |
months()
Returns a one-month aggregation span. |
static AggregationSpan |
months(int num)
Returns aggregation span measured in months. |
static AggregationSpan |
ticks(int num)
Returns aggregation span measured in ticks. |
java.lang.String |
toString()
|
static AggregationSpan |
weeks()
Returns a one-week aggregation span. |
static AggregationSpan |
weeks(int num)
Returns aggregation span measured in weeks. |
static AggregationSpan |
years()
Returns a one-year aggregation span. |
static AggregationSpan |
years(int num)
Returns aggregation span measured in years. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final TimeUnitEnum units
public final int length
| Constructor Detail |
|---|
public AggregationSpan(TimeUnitEnum units,
int length)
units - time units (DAYS, WEEKS, etc.). A special
unit of TICKS will mean that
the aggregation will be done over that many ticks.length - length of aggregation span.| Method Detail |
|---|
public static AggregationSpan years(int num)
num - number of years (1 or greater).
public static AggregationSpan years()
public static AggregationSpan months(int num)
num - number of months (1 or greater).
public static AggregationSpan months()
public static AggregationSpan weeks(int num)
num - number of weeks (1 or greater).
public static AggregationSpan weeks()
public static AggregationSpan days(int num)
num - number of days (1 or greater).
public static AggregationSpan days()
public static AggregationSpan hours(int num)
num - number of hours (1 or greater).
public static AggregationSpan hours()
public static AggregationSpan minutes(int num)
num - number of minutes (1 or greater).
public static AggregationSpan minutes()
public static AggregationSpan ticks(int num)
num - number of ticks (2 or greater).
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||