public class CalculatorContextSignature extends Object
Constructor and Description |
---|
CalculatorContextSignature(TabularPivotModel model)
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(TabularPivotModel model,
PivotField[] extraDataFields,
ContextType<?>[] extraContextTypes)
Optionally provide extra data fields and/or extra calculator context types
to secure in the requirement set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
covers(CalculatorContextSignature signature)
Return true if this cover the other signature.
|
ContextType<?> |
getCustomContextType(int index) |
int |
getCustomContextTypeCount() |
ContextType<?>[] |
getCustomContextTypeRequirement() |
int |
getDataFieldCount() |
Set<PivotField> |
getDataFieldRequirement() |
int |
getIndexOf(ContextType<?> type)
Return the ordinal of custom ContextType in this signature.
|
Set<PivotField> |
getRowColumnFieldRequirement() |
boolean[] |
getStandardContextTypeRequirement() |
int |
getTotalContextTypeCount() |
String |
toString() |
public CalculatorContextSignature(TabularPivotModel model)
public CalculatorContextSignature(TabularPivotModel model, PivotField[] extraDataFields, ContextType<?>[] extraContextTypes)
extraDataFields
- can be nullextraContextTypes
- can be nullpublic Set<PivotField> getRowColumnFieldRequirement()
public Set<PivotField> getDataFieldRequirement()
public boolean[] getStandardContextTypeRequirement()
public ContextType<?>[] getCustomContextTypeRequirement()
public int getDataFieldCount()
public int getCustomContextTypeCount()
public int getTotalContextTypeCount()
public ContextType<?> getCustomContextType(int index)
public boolean covers(CalculatorContextSignature signature)
public int getIndexOf(ContextType<?> type)
Copyright © 2017. All rights reserved.