|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.DataStatistics
public class DataStatistics
ESRI Data Statistics object.
The DataStatistics object allows for the retrieval of statistical and unique value information for a single field. After creating the DataStatistics object, the data used in the analysis is provided as an ICursor object through the IDataStatistics::Cursor property. Keep in mind that ICursor objects can only be traversed once. If you need to get statistical values and unique values, then you will need to recreate the cursor after executing the first request.
Constructor Summary | |
---|---|
DataStatistics()
Constructs a DataStatistics using ArcGIS Engine. |
|
DataStatistics(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. DataStatistics theDataStatistics = (DataStatistics) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
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. |
int |
hashCode()
the hashcode for this object |
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public DataStatistics() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic DataStatistics(Object obj) throws IOException
DataStatistics theDataStatistics = (DataStatistics) obj;
obj
to DataStatistics
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setField(String field) throws IOException, AutomationException
setField
in interface IDataStatistics
field
- The field (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getField() throws IOException, AutomationException
getField
in interface IDataStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCursorByRef(ICursor rhs1) throws IOException, AutomationException
setCursorByRef
in interface IDataStatistics
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.public void setSampleRate(int maxRecords) throws IOException, AutomationException
setSampleRate
in interface IDataStatistics
maxRecords
- The maxRecords (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getSampleRate() throws IOException, AutomationException
getSampleRate
in interface IDataStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSimpleStats(boolean simple) throws IOException, AutomationException
setSimpleStats
in interface IDataStatistics
simple
- The simple (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSimpleStats() throws IOException, AutomationException
isSimpleStats
in interface IDataStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStatisticsResults getStatistics() throws IOException, AutomationException
getStatistics
in interface IDataStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnumVARIANT getUniqueValues() throws IOException, AutomationException
getUniqueValues
in interface IDataStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getUniqueValueCount
in interface IDataStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isContinue() throws IOException, AutomationException
isContinue
in interface IDataStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCancelled() throws IOException, AutomationException
isCancelled
in interface IDataStatistics
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 |