Class TopNProcessor
Namespace: FastReport.Olap.Slice
Assembly: FastCube.Core.dll
TopN engine
public class TopNProcessor
Inheritance
Constructors
TopNProcessor(AxisField)
Creates a new instance.
public TopNProcessor(AxisField field)
Parameters
field
AxisField
Fields
topStr
Strings for localizations.
public static string[] topStr
Field Value
string[]
Properties
Active
Activates/Deactivates TopN, get active state
public bool Active { get; set; }
Property Value
AxisField
Reference to Dimension which needs to be handled by TopN engine
public AxisField AxisField { get; }
Property Value
CreateOthers
Determines whether to create "other" cell
public bool CreateOthers { get; set; }
Property Value
Measure
Reference to Measure which gives values
public MeasureField Measure { get; set; }
Property Value
TopCount
Number of Top values
public int TopCount { get; set; }
Property Value
TopType
Use the most / least TopN values
public TopType TopType { get; set; }
Property Value
Methods
IsOther(int)
Determines whether the passed record index is "other"
public bool IsOther(int recIndex)
Parameters
recIndex
int
record index
Returns
True - is other, False - in other case
Load(XmlItem)
Load from XML
public void Load(XmlItem item)
Parameters
item
XmlItem
XML item
Save(XmlItem)
Save to XML
public void Save(XmlItem item)
Parameters
item
XmlItem
XML item
ToString()
Get string representation of TopN
public override string ToString()
Returns
string