Table of Contents

Class TopNProcessor

Namespace: FastReport.Olap.Slice
Assembly: FastCube.Core.dll

TopN engine

public class TopNProcessor

Inheritance

objectTopNProcessor

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

bool

AxisField

Reference to Dimension which needs to be handled by TopN engine

public AxisField AxisField { get; }

Property Value

AxisField

CreateOthers

Determines whether to create "other" cell

public bool CreateOthers { get; set; }

Property Value

bool

Measure

Reference to Measure which gives values

public MeasureField Measure { get; set; }

Property Value

MeasureField

TopCount

Number of Top values

public int TopCount { get; set; }

Property Value

int

TopType

Use the most / least TopN values

public TopType TopType { get; set; }

Property Value

TopType

Methods

IsOther(int)

Determines whether the passed record index is "other"

public bool IsOther(int recIndex)

Parameters

recIndex int

record index

Returns

bool

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

string