com.tibco.rta.model
Interface TimeUnits

All Superinterfaces:
java.io.Serializable

public interface TimeUnits
extends java.io.Serializable

These are units of time on which aggregations are performed. They may be absolute units of time (Aboslute hour) or repeating units of time (Month of the year).


Nested Class Summary
static class TimeUnits.Unit
          An enumeration of some basic time units.
 
Method Summary
 int getFirstQtrStartMonth()
          For quarters, this represents the month corresponding to the 1st quarter.
 int getMultiplier()
          Get the multiplier for the time unit specified.
 long getTimeDimensionValue(long timestamp)
          Given a timestamp, return its absolute time dimension value
 TimeUnits.Unit getTimeUnit()
          Get the time unit
 

Method Detail

getTimeUnit

TimeUnits.Unit getTimeUnit()
Get the time unit

Returns:
the timeunit.

getMultiplier

int getMultiplier()
Get the multiplier for the time unit specified.

Returns:
the multiplier

getFirstQtrStartMonth

int getFirstQtrStartMonth()
For quarters, this represents the month corresponding to the 1st quarter.

Returns:
the month corresponding to the first quarter.

getTimeDimensionValue

long getTimeDimensionValue(long timestamp)
Given a timestamp, return its absolute time dimension value

Parameters:
timestamp - the timestamp
Returns:
the absolute time interval used for aggregations, corresponding to the specified time.


Copyright © 2000-2014 TIBCO Inc. All Rights Reserved.