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