|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.businessobjects.customds.common.IteratorInfo
public class IteratorInfo
The IteratorInfo class contains information about the data iterator.
The Iterator ID is a unique ID and is used to identify the data iterator.
For retrieving data chunks, framework checks if the plug-in has more chunks to return. However, this sequence can be altered by the plug-in having Row-Count based Iterator.
Plug-ins with Row-Count based Iterator are those plug-ins that set the value of isRowCountBased property to true.
The row count value must be set for the Row-Count based Iterator, because this is vital for Interactive Analysis. Moreover,
calls such as CustomDataProvider.getNextChunk(int, ColumnSpec[]) to the plug-in may depend on this value.
CustomDataSource| Field Summary | |
|---|---|
boolean |
isRowCountBased
The isRowCountBased boolean is used to check if the row count set for this Iterator is accurate. |
| Constructor Summary | |
|---|---|
IteratorInfo(int iterId)
Class Constructor - Internal Use Only |
|
| Method Summary | |
|---|---|
int |
getExcludedRowCount()
Returns the excluded row count associated with the Data Iterator object set by the plug-in. |
int |
getIteratorId()
Returns the unique ID of the Data Iterator. |
int |
getRowCount()
Returns the row count associated with the Data Iterator object set by the plug-in. |
void |
setExcludedRowCount(int count)
Sets the excluded row count associated with the Data Iterator object. |
void |
setRowCount(int count)
Sets the row count for the Data Iterator. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean isRowCountBased
isRowCountBased boolean is used to check if the row count set for this Iterator is accurate.
If the value is set to true, then calls for CustomDataProvider.getNextChunk(int, ColumnSpec[]) are based on the row count and not on
CustomDataProvider.hasNextChunk(int)
| Constructor Detail |
|---|
public IteratorInfo(int iterId)
iterId - The unique identifier of the Data Iterator.| Method Detail |
|---|
public int getIteratorId()
public int getRowCount()
public void setRowCount(int count)
throws DataSourceException
This method must be used by the plug-in to set the row count of the Data Iterator (Row-Count based)
during CustomDataProvider.openIterator(IteratorInfo, ColumnSpec[]) method call.
count - The row count.
DataSourceException - If the row count is negative.public int getExcludedRowCount()
Excluded row count information is not used by the Framework. However, this information may be useful for the plug-in to exclude a few rows from the data set. The default value is 0.
public void setExcludedRowCount(int count)
throws DataSourceException
Excluded row count information is not used by the Framework. However, this information may be useful for the plug-in to exclude a few rows from the data set.
The default value is 0.
count - The excluded row count for the Data Iterator.
DataSourceException - if the row count is negative.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||