Style Intelligence v12.0

inetsoft.graph.data
Class TimeSeriesRow

java.lang.Object
  extended by inetsoft.graph.data.TimeSeriesRow
All Implemented Interfaces:
CalcRow, Serializable, Cloneable

public class TimeSeriesRow
extends Object
implements CalcRow

This class fills in the missing gaps in the time series.

See Also:
Serialized Form

Constructor Summary
TimeSeriesRow()
          Create a time series row.
TimeSeriesRow(String tcol, int dtype, Object missingval)
          Create a calc row.
 
Method Summary
 List calculate(DataSet data)
          Calculate the values for the dataset.
 Comparator getComparator(String col)
          Get the comparer to sort data at the specified column.
 String[] getGroupFields()
          Get the fields for grouping values into subsets for filling in time series.
 int getMaxGaps()
          Get the maximum number of rows to add to fill the gaps.
 Object getMissingValue(String measure)
          Get the per measure missing time gap value.
 String[] getOuterFields()
          Get the outer dimension fields.
 String getTimeColumn()
          Get the time series column name.
 int getTimeType()
          Get the time series type.
protected  boolean isFillTimeGap(String dim)
           
protected  boolean isRunningTotal(String dim)
           
 void setGroupFields(String[] fields)
          Set the fields for grouping values into subsets for filling in time series.
 void setMaxGaps(int max)
          Set the maximum number of rows to add to fill the gaps.
 void setMissingValue(String measure, Object val)
          Set the per measure missing time gap value.
 void setOuterFields(String[] fields)
          Set the outer dimension fields.
 void setTimeColumn(String tcol)
          Set the time series column name.
 void setTimeType(int dtype)
          Set the time series type, one of the constants defined in TimeScale (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSeriesRow

public TimeSeriesRow()
Create a time series row. The time series column, time series type, must be specified before it's used.


TimeSeriesRow

public TimeSeriesRow(String tcol,
                     int dtype,
                     Object missingval)
Create a calc row.

Parameters:
tcol - the time series column.
dtype - date column type, a constants defined in TimeScale.
missingval - the measure value for filling missing time gaps.
Method Detail

setTimeColumn

public void setTimeColumn(String tcol)
Set the time series column name.


getTimeColumn

public String getTimeColumn()
Get the time series column name.


setTimeType

public void setTimeType(int dtype)
Set the time series type, one of the constants defined in TimeScale (e.g. YEAR, MONTH).


getTimeType

public int getTimeType()
Get the time series type.


setMissingValue

public void setMissingValue(String measure,
                            Object val)
Set the per measure missing time gap value. If the per measure value is not set, use the global value.


getMissingValue

public Object getMissingValue(String measure)
Get the per measure missing time gap value.


setGroupFields

public void setGroupFields(String[] fields)
Set the fields for grouping values into subsets for filling in time series.


getGroupFields

public String[] getGroupFields()
Get the fields for grouping values into subsets for filling in time series.


setOuterFields

public void setOuterFields(String[] fields)
Set the outer dimension fields.


getOuterFields

public String[] getOuterFields()
Get the outer dimension fields.


getMaxGaps

public int getMaxGaps()
Get the maximum number of rows to add to fill the gaps.


setMaxGaps

public void setMaxGaps(int max)
Set the maximum number of rows to add to fill the gaps.


calculate

public List calculate(DataSet data)
Calculate the values for the dataset.

Specified by:
calculate in interface CalcRow
Returns:
the rows to append to the dataset.

isFillTimeGap

protected boolean isFillTimeGap(String dim)

isRunningTotal

protected boolean isRunningTotal(String dim)

getComparator

public Comparator getComparator(String col)
Get the comparer to sort data at the specified column.

Specified by:
getComparator in interface CalcRow
Parameters:
col - the specified column.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.