Class DataSetIterator
java.lang.Object
org.eclipse.birt.chart.computation.DataSetIterator
- All Implemented Interfaces:
Iterator
An immutable class with convenience methods provided to retrieve data from
the dataset
-
Constructor Summary
ConstructorsConstructorDescriptionDataSetIterator
(com.ibm.icu.util.Calendar[] ca) DataSetIterator
(Double[] dda) DataSetIterator
(Object oContent, int iDataType) DataSetIterator
(String[] sa) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Frees all references to data held internally in this structurefirst()
int
int
getIndex()
boolean
hasNext()
boolean
isEmpty()
last()
next()
org.eclipse.birt.chart.util.BigNumber
com.ibm.icu.util.Calendar
com.ibm.icu.util.Calendar
double
nextText()
void
void
remove()
void
reset()
void
reverse
(boolean bReverse) Reverses the series categories.int
size()
int
skip
(int iCount) Skips the next iCount rowsMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DataSetIterator
- Parameters:
ds
-
-
DataSetIterator
- Parameters:
sa
-
-
DataSetIterator
- Parameters:
sa
-- Throws:
ChartException
-
DataSetIterator
public DataSetIterator(Object oContent, int iDataType) throws IllegalArgumentException, ChartException - Parameters:
ds
-- Throws:
IllegalArgumentException
ChartException
-
DataSetIterator
- Parameters:
ds
-- Throws:
IllegalArgumentException
ChartException
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Returns:
-
nextPrimitiveDouble
public double nextPrimitiveDouble()- Returns:
-
nextDouble
- Returns:
-
nextBigNumber
public org.eclipse.birt.chart.util.BigNumber nextBigNumber() -
nextNumber
-
nextDateTime
public com.ibm.icu.util.Calendar nextDateTime()- Returns:
-
nextText
- Returns:
-
nextObject
- Returns:
-
nextPrimitiveDateTime
public com.ibm.icu.util.Calendar nextPrimitiveDateTime()- Returns:
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
size
public int size()- Returns:
-
reset
public void reset() -
first
- Returns:
-
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
-