Interface IDataStatistics

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members to generate statistics on a field.

[Guid("CA691DD5-8A14-11D2-AE6C-080009EC732A")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IDataStatistics

Remarks

The IDataStatistics object is the lone interface on the DataStatistics object and provides access to statistical information and unique values for the specified field.  The data to perform the analysis on is provided via an ICursor object attached to the DataStatistics object through the IDataStatistics::Cursor property.

Cursors can only be traversed once, which needs to be kept in mind when accessing statistical information and unique values.  For instance, it is necessary to re-execute the original query and set the Cursor property to the new cursor between accessing the Statistics and UniqueValues properties.

The UniqueValueCount property will return zero until you have retrieved the set of unique values from the UniqueValues property.

When accessing the Statistics property, the Field property should be set to the name of a numeric field. Attempting to retrieve Statistics for a non-numeric field will raise an error.

Properties

Cancelled

Indicates if the operation has been cancelled.

bool Cancelled { get; }

Property Value

bool

Continue

Indicates if the cursor contains more records than the current sample.

bool Continue { get; }

Property Value

bool

Cursor

The cursor which will generate the statistics.

ICursor Cursor { set; }

Property Value

ICursor

Field

The field for which to gather statistics.

string Field { get; set; }

Property Value

string

SampleRate

The maximum number of records to sample at a time (-1 means pull all records).

int SampleRate { get; set; }

Property Value

int

SimpleStats

Indicates whether only simple statistics are generated.

bool SimpleStats { get; set; }

Property Value

bool

Statistics

The statistics for the current field over the current cursor.

IStatisticsResults Statistics { get; }

Property Value

IStatisticsResults

UniqueValueCount

The number of unique values for the current sample.

int UniqueValueCount { get; }

Property Value

int

Remarks

The UniqueValues property must be accessed prior to getting this property (in order to calculate the count) for a correct value to be returned.

UniqueValues

The unique values for the current field over the current cursor.

IEnumerator UniqueValues { get; }

Property Value

IEnumerator