|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataStatistics
Provides access to members to generate statistics on a field.
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.
DataStatistics
Method Summary | |
---|---|
String |
getField()
The field for which to gather statistics. |
int |
getSampleRate()
The maximum number of records to sample at a time (-1 means pull all records). |
IStatisticsResults |
getStatistics()
The statistics for the current field over the current cursor. |
int |
getUniqueValueCount()
The number of unique values for the current sample. |
IEnumVARIANT |
getUniqueValues()
The unique values for the current field over the current cursor. |
boolean |
isCancelled()
Indicates if the operation has been cancelled. |
boolean |
isContinue()
Indicates if the cursor contains more records than the current sample. |
boolean |
isSimpleStats()
Indicates whether only simple statistics are generated. |
void |
setCursorByRef(ICursor rhs1)
The cursor which will generate the statistics. |
void |
setField(String field)
The field for which to gather statistics. |
void |
setSampleRate(int maxRecords)
The maximum number of records to sample at a time (-1 means pull all records). |
void |
setSimpleStats(boolean simple)
Indicates whether only simple statistics are generated. |
Method Detail |
---|
void setField(String field) throws IOException, AutomationException
field
- The field (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getField() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCursorByRef(ICursor rhs1) throws IOException, AutomationException
rhs1
- A reference to a com.esri.arcgis.geodatabase.ICursor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSampleRate(int maxRecords) throws IOException, AutomationException
maxRecords
- The maxRecords (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSampleRate() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSimpleStats(boolean simple) throws IOException, AutomationException
simple
- The simple (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSimpleStats() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IStatisticsResults getStatistics() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumVARIANT getUniqueValues() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getUniqueValueCount() throws IOException, AutomationException
The UniqueValues property must be accessed prior to getting this property (in order to calculate the count) for a correct value to be returned.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isContinue() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCancelled() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |