Class DataSetIterator
- java.lang.Object
-
- org.eclipse.birt.chart.computation.DataSetIterator
-
- All Implemented Interfaces:
java.util.Iterator
public final class DataSetIterator extends java.lang.Object implements java.util.Iterator
An immutable class with convenience methods provided to retrieve data from the dataset
-
-
Constructor Summary
Constructors Constructor Description DataSetIterator(com.ibm.icu.util.Calendar[] ca)
DataSetIterator(java.lang.Double[] dda)
DataSetIterator(java.lang.Object oContent, int iDataType)
DataSetIterator(java.lang.String[] sa)
DataSetIterator(DataSet ds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Frees all references to data held internally in this structurejava.lang.Object
first()
int
getDataType()
int
getIndex()
boolean
hasNext()
boolean
isEmpty()
java.lang.Object
last()
java.lang.Object
next()
org.eclipse.birt.chart.util.BigNumber
nextBigNumber()
com.ibm.icu.util.Calendar
nextDateTime()
java.lang.Double
nextDouble()
java.lang.Number
nextNumber()
java.lang.Object
nextObject()
com.ibm.icu.util.Calendar
nextPrimitiveDateTime()
double
nextPrimitiveDouble()
java.lang.String
nextText()
void
notifyDataUpdate()
void
remove()
void
reset()
void
reverse(boolean bReverse)
Reverses the series categories.int
size()
int
skip(int iCount)
Skips the next iCount rows
-
-
-
Constructor Detail
-
DataSetIterator
public DataSetIterator(java.lang.Double[] dda)
- Parameters:
ds
-
-
DataSetIterator
public DataSetIterator(java.lang.String[] sa)
- Parameters:
sa
-
-
DataSetIterator
public DataSetIterator(com.ibm.icu.util.Calendar[] ca) throws ChartException
- Parameters:
sa
-- Throws:
ChartException
-
DataSetIterator
public DataSetIterator(java.lang.Object oContent, int iDataType) throws java.lang.IllegalArgumentException, ChartException
- Parameters:
ds
-- Throws:
java.lang.IllegalArgumentException
ChartException
-
DataSetIterator
public DataSetIterator(DataSet ds) throws java.lang.IllegalArgumentException, ChartException
- Parameters:
ds
-- Throws:
java.lang.IllegalArgumentException
ChartException
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Returns:
-
nextPrimitiveDouble
public double nextPrimitiveDouble()
- Returns:
-
nextDouble
public java.lang.Double nextDouble()
- Returns:
-
nextBigNumber
public org.eclipse.birt.chart.util.BigNumber nextBigNumber()
-
nextNumber
public java.lang.Number nextNumber()
-
nextDateTime
public com.ibm.icu.util.Calendar nextDateTime()
- Returns:
-
nextText
public java.lang.String nextText()
- Returns:
-
nextObject
public java.lang.Object nextObject()
- Returns:
-
nextPrimitiveDateTime
public com.ibm.icu.util.Calendar nextPrimitiveDateTime()
- Returns:
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator
- Returns:
-
next
public java.lang.Object next()
- Specified by:
next
in interfacejava.util.Iterator
- Returns:
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator
-
size
public int size()
- Returns:
-
reset
public void reset()
-
first
public java.lang.Object first()
- Returns:
-
last
public java.lang.Object last()
- Returns:
-
clear
public void clear()
Frees all references to data held internally in this structure
-
notifyDataUpdate
public void notifyDataUpdate()
-
getDataType
public int getDataType()
- Returns:
-
getIndex
public int getIndex()
- Returns:
- current index
-
reverse
public void reverse(boolean bReverse)
Reverses the series categories.- Parameters:
bReverse
-
-
skip
public int skip(int iCount)
Skips the next iCount rows- Parameters:
iCount
-- Returns:
- number of actually skipped rows
-
-