Class Dimension<TData>
A dimension of data type TData partitions a range of values by mapping the given value into [0 ... PartitionCount] partitions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Instrumentation.Analytics
Assembly: Azos.dll
Syntax
public class Dimension<TData> : Dimension
Type Parameters
Name | Description |
---|---|
TData |
Constructors
Dimension(String, Int32, PartitionFunc<TData>, PartitionNameFunc)
Creates a histogram dimension. If partitionFunc is null then DoPartition must be overriden in the derived class
Declaration
public Dimension(string name, int partCount, PartitionFunc<TData> partitionFunc = null, PartitionNameFunc partitionNameFunc = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Description of dimension used in reporting |
System.Int32 | partCount | Total number of partitions |
PartitionFunc<TData> | partitionFunc | Used to inject a function in order not to override this class |
PartitionNameFunc | partitionNameFunc | Used to inject a function in order not to override this class |
Fields
m_PartitionFunc
Declaration
protected PartitionFunc<TData> m_PartitionFunc
Field Value
Type | Description |
---|---|
PartitionFunc<TData> |
Properties
DataType
Returns the type of data that this instance partitions
Declaration
public override Type DataType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Overrides
Item[TData]
Maps a value into partition index
Declaration
public int this[TData value] { get; }
Parameters
Type | Name | Description |
---|---|---|
TData | value |
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
DoPartition(TData)
Override to implement a custom partitioning logic in case of class derivation when its not passed in the .ctor
Declaration
protected virtual int DoPartition(TData value)
Parameters
Type | Name | Description |
---|---|---|
TData | value |
Returns
Type | Description |
---|---|
System.Int32 |