protected static class TabularPivotModel.CalculatorContextSpace extends Object implements TabularPivotModel.RawDataRunner
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup> |
_base |
protected CalculatorContextSignature |
_baseSig |
protected int |
_cfs |
protected boolean |
_cfs0 |
protected TabularPivotField[] |
_colPF |
protected TabularPivotField[] |
_dataPF |
protected boolean |
_delegateSrc |
protected Map<String,org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup> |
_derived |
protected int |
_dfs |
protected TabularPivotModel |
_model |
protected int |
_rcfs |
protected int |
_rfs |
protected boolean |
_rfs0 |
protected TabularPivotField[] |
_rowPF |
protected Map<String,org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup> |
_source |
protected TabularPivotField[] |
_srcDataPF |
protected TabularPivotField[] |
_srcRCPF |
protected CalculatorContextSignature |
_srcSig |
Modifier | Constructor and Description |
---|---|
protected |
TabularPivotModel.CalculatorContextSpace(TabularPivotModel model) |
Modifier and Type | Method and Description |
---|---|
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup |
getBaseGroup(SimplePivotHeaderNode rowNode,
SimplePivotHeaderNode colNode,
boolean autoCreate) |
protected static Object |
getData(List<?> row,
TabularPivotField field) |
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup |
getDerivedGroup(SimplePivotHeaderNode rowNode,
SimplePivotHeaderNode colNode,
boolean cache,
boolean merge) |
protected static SimplePivotHeaderNode |
getFirstLevel(SimplePivotHeaderNode node) |
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup |
getGroup(SimplePivotHeaderNode rowNode,
SimplePivotHeaderNode colNode,
boolean cache) |
protected static String |
getHash(SimplePivotHeaderNode rowNode,
SimplePivotHeaderNode colNode) |
protected Object[] |
getKeys(List<?> row) |
int |
getOverallGrandtotalIdxMapping(int idx)
get the mapped data index for overall grand total
based on given original data index
|
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup |
getSourceGroup(SimplePivotHeaderNode rowNode,
SimplePivotHeaderNode colNode,
boolean autoCreate,
Object[] keys) |
protected void |
iterateSource(SimplePivotHeaderTree rowTree,
SimplePivotHeaderTree colTree) |
protected void |
mergeGroup(org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup m,
SimplePivotHeaderNode rowNode,
SimplePivotHeaderNode colNode) |
protected void |
refreshPivotScheme() |
protected void |
refreshSourceFieldInfo() |
void |
run(List<?> row,
SimplePivotHeaderTree rowTree,
SimplePivotHeaderTree colTree) |
protected int |
searchSourceDataField(PivotField f) |
protected int |
searchSourceRCField(PivotField f) |
protected SimplePivotHeaderTree[] |
update(boolean force) |
protected final TabularPivotModel _model
protected final Map<String,org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup> _source
protected final Map<String,org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup> _base
protected final Map<String,org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup> _derived
protected TabularPivotField[] _colPF
protected TabularPivotField[] _rowPF
protected TabularPivotField[] _dataPF
protected TabularPivotField[] _srcRCPF
protected TabularPivotField[] _srcDataPF
protected int _rfs
protected int _cfs
protected int _rcfs
protected int _dfs
protected boolean _rfs0
protected boolean _cfs0
protected CalculatorContextSignature _srcSig
protected CalculatorContextSignature _baseSig
protected boolean _delegateSrc
protected TabularPivotModel.CalculatorContextSpace(TabularPivotModel model)
protected SimplePivotHeaderTree[] update(boolean force)
public void run(List<?> row, SimplePivotHeaderTree rowTree, SimplePivotHeaderTree colTree)
run
in interface TabularPivotModel.RawDataRunner
protected void iterateSource(SimplePivotHeaderTree rowTree, SimplePivotHeaderTree colTree)
public int getOverallGrandtotalIdxMapping(int idx)
idx
- int the given original data indexprotected final int searchSourceRCField(PivotField f)
protected final int searchSourceDataField(PivotField f)
protected static final SimplePivotHeaderNode getFirstLevel(SimplePivotHeaderNode node)
protected final void refreshPivotScheme()
protected final void refreshSourceFieldInfo()
protected static final Object getData(List<?> row, TabularPivotField field)
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup getSourceGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean autoCreate, Object[] keys)
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup getBaseGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean autoCreate)
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup getDerivedGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean cache, boolean merge)
protected static final String getHash(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode)
protected void mergeGroup(org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup m, SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode)
protected org.zkoss.pivot.impl.TabularPivotModel.CalculatorContextSpace.CalculatorContextGroup getGroup(SimplePivotHeaderNode rowNode, SimplePivotHeaderNode colNode, boolean cache)
Copyright © 2017. All rights reserved.