Class IntervalList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<org.dashbuilder.dataset.group.Interval>
-
- org.dashbuilder.dataset.engine.group.IntervalList
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<org.dashbuilder.dataset.group.Interval>,Collection<org.dashbuilder.dataset.group.Interval>,List<org.dashbuilder.dataset.group.Interval>,RandomAccess
- Direct Known Subclasses:
IntervalListDayOfWeek,IntervalListMonth,IntervalListQuarter,IntervalListSecond
public abstract class IntervalList extends ArrayList<org.dashbuilder.dataset.group.Interval>
An list containing the intervals derived from an specific domain configuration.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.dashbuilder.dataset.group.ColumnGroupcolumnGroupprotected StringintervalTypeprotected ObjectmaxValueprotected ObjectminValue-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description IntervalList(org.dashbuilder.dataset.group.ColumnGroup columnGroup)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.dashbuilder.dataset.group.ColumnGroupgetColumnGroup()StringgetIntervalType()ObjectgetMaxValue()ObjectgetMinValue()voidindexValue(Object value, int row)Index the given value into the appropriate interval.IntervalListindexValues(List<Object> values, List<Integer> rows)Creates and classify the list of specified values into intervals.abstract org.dashbuilder.dataset.group.IntervallocateInterval(Object value)Get the interval that holds the given value.voidsetIntervalType(String intervalType)voidsetMaxValue(Object maxValue)voidsetMinValue(Object minValue)-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
getColumnGroup
public org.dashbuilder.dataset.group.ColumnGroup getColumnGroup()
-
getIntervalType
public String getIntervalType()
-
setIntervalType
public void setIntervalType(String intervalType)
-
getMinValue
public Object getMinValue()
-
setMinValue
public void setMinValue(Object minValue)
-
getMaxValue
public Object getMaxValue()
-
setMaxValue
public void setMaxValue(Object maxValue)
-
indexValues
public IntervalList indexValues(List<Object> values, List<Integer> rows)
Creates and classify the list of specified values into intervals.
-
indexValue
public void indexValue(Object value, int row)
Index the given value into the appropriate interval.- Parameters:
value- The value to indexrow- The row index where the value is hold within the data set.
-
locateInterval
public abstract org.dashbuilder.dataset.group.Interval locateInterval(Object value)
Get the interval that holds the given value.- Parameters:
value- The value we are asking for.- Returns:
- The interval which the value belongs to.
-
-