Class FastGlobalView
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.states.datarow.FastGlobalView
-
- All Implemented Interfaces:
DataRow
,MasterDataRowChangeHandler
public final class FastGlobalView extends Object implements DataRow, MasterDataRowChangeHandler
-
-
Constructor Summary
Constructors Constructor Description FastGlobalView()
FastGlobalView(FastGlobalView parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FastGlobalView
advance()
void
dataRowChanged(MasterDataRowChangeEvent chEvent)
FastGlobalView
derive()
Object
get(String col)
Returns the value of the function, expression or column using its specific name.String[]
getColumnNames()
Returns the known column names, this data-row understands.MasterDataRowChangeEvent
getReusableEvent()
boolean
isChanged(String name)
Checks whether the value contained in the column has changed since the last advance-operation.void
validateChangedFlags()
-
-
-
Constructor Detail
-
FastGlobalView
public FastGlobalView(FastGlobalView parent)
-
FastGlobalView
public FastGlobalView()
-
-
Method Detail
-
getReusableEvent
public MasterDataRowChangeEvent getReusableEvent()
- Specified by:
getReusableEvent
in interfaceMasterDataRowChangeHandler
-
dataRowChanged
public void dataRowChanged(MasterDataRowChangeEvent chEvent)
- Specified by:
dataRowChanged
in interfaceMasterDataRowChangeHandler
-
getColumnNames
public String[] getColumnNames()
Description copied from interface:DataRow
Returns the known column names, this data-row understands. The column names may change over time but do not change while a event is processed by a function. The array returned is a copy of the internal data-storage and can be safely modified.- Specified by:
getColumnNames
in interfaceDataRow
- Returns:
- the column names as array.
-
get
public Object get(String col) throws IllegalStateException
Description copied from interface:DataRow
Returns the value of the function, expression or column using its specific name. The given name is translated into a valid column number and the the column is queried. For functions and expressions, thegetValue()
method is called and for columns from the tablemodel the tablemodel methodgetValueAt(row, column)
gets called.- Specified by:
get
in interfaceDataRow
- Parameters:
col
- the item index.- Returns:
- the value.
- Throws:
IllegalStateException
-
isChanged
public boolean isChanged(String name)
Description copied from interface:DataRow
Checks whether the value contained in the column has changed since the last advance-operation.
-
derive
public FastGlobalView derive()
-
advance
public FastGlobalView advance()
-
validateChangedFlags
public void validateChangedFlags()
-
-