Package org.dashbuilder.dataset.group
Class Interval
- java.lang.Object
-
- org.dashbuilder.dataset.group.Interval
-
public class Interval extends Object
An interval represent a grouped subset of a data values.
-
-
Field Summary
Fields Modifier and Type Field Description protected intindexThe position of this interval (starting at 0) within the group operation interval list.protected ObjectmaxValueThe max. date within the interval (Only for date columns)protected ObjectminValueThe min. within the interval (Only for date columns)protected StringnameA name that identifies the interval and it's different of other intervals belonging to the same group.protected List<Integer>rowsThe row indexes of the values that belong to this interval.protected StringtypeThe interval type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntervalcloneInstance()booleanequals(Object obj)intgetIndex()ObjectgetMaxValue()ObjectgetMinValue()StringgetName()List<Integer>getRows()StringgetType()inthashCode()voidsetIndex(int index)voidsetMaxValue(Object maxValue)voidsetMinValue(Object minValue)voidsetName(String name)voidsetRows(List<Integer> rows)voidsetType(String type)
-
-
-
Field Detail
-
name
protected String name
A name that identifies the interval and it's different of other intervals belonging to the same group.
-
index
protected int index
The position of this interval (starting at 0) within the group operation interval list.
-
type
protected String type
The interval type
-
minValue
protected Object minValue
The min. within the interval (Only for date columns)
-
maxValue
protected Object maxValue
The max. date within the interval (Only for date columns)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getMinValue
public Object getMinValue()
-
setMinValue
public void setMinValue(Object minValue)
-
getMaxValue
public Object getMaxValue()
-
setMaxValue
public void setMaxValue(Object maxValue)
-
cloneInstance
public Interval cloneInstance()
-
-