Package org.zkoss.pivot.impl
Class CalculatorContextSignature
java.lang.Object
org.zkoss.pivot.impl.CalculatorContextSignature
An immutable object that express the requirement of the bottom level cache
of TabularPivotModel.
- Author:
- simonpai
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor, which determines the row/column fields, the data fields and the calculator context types required to build up the model cache.CalculatorContextSignature(TabularPivotModel model, PivotField[] extraDataFields, ContextType<?>[] extraContextTypes) Optionally provide extra data fields and/or extra calculator context types to secure in the requirement set. -
Method Summary
Modifier and TypeMethodDescriptionbooleancovers(CalculatorContextSignature signature) Return true if this cover the other signature.ContextType<?>getCustomContextType(int index) intContextType<?>[]intintgetIndexOf(ContextType<?> type) Return the ordinal of custom ContextType in this signature.boolean[]inttoString()
-
Constructor Details
-
CalculatorContextSignature
The default constructor, which determines the row/column fields, the data fields and the calculator context types required to build up the model cache. -
CalculatorContextSignature
public CalculatorContextSignature(TabularPivotModel model, PivotField[] extraDataFields, ContextType<?>[] extraContextTypes) Optionally provide extra data fields and/or extra calculator context types to secure in the requirement set.- Parameters:
extraDataFields- can be nullextraContextTypes- can be null
-
-
Method Details
-
getRowColumnFieldRequirement
-
getDataFieldRequirement
-
getStandardContextTypeRequirement
public boolean[] getStandardContextTypeRequirement() -
getCustomContextTypeRequirement
-
getDataFieldCount
public int getDataFieldCount() -
getCustomContextTypeCount
public int getCustomContextTypeCount() -
getTotalContextTypeCount
public int getTotalContextTypeCount() -
getCustomContextType
-
covers
Return true if this cover the other signature. -
getIndexOf
Return the ordinal of custom ContextType in this signature. -
toString
-