com.esri.arcgis.geodatabase
Class DataStatistics

java.lang.Object
  extended by com.esri.arcgis.geodatabase.DataStatistics
All Implemented Interfaces:
IDataStatistics, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class DataStatistics
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IDataStatistics

COM Class 'DataStatistics'. Generated 3/19/2015 1:20:43 PM from 'C:\ArcGIS\COM\esriGeoDatabase.olb'

Description 'Esri Data Statistics object.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geodatabase.IDataStatistics
IID, IIDca691dd5_8a14_11d2_ae6c_080009ec732a, xxDummy
 
Constructor Summary
DataStatistics()
          Constructs a DataStatistics using ArcGIS Engine.
DataStatistics(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DataStatistics theDataStatistics = (DataStatistics) obj;
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
static java.lang.String getClsid()
          getClsid.
 java.lang.String getField()
          The field for which to gather statistics.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 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 release()
          Release a DataStatistics.
 void setCursorByRef(ICursor rhs1)
          The cursor which will generate the statistics.
 void setField(java.lang.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
 

Constructor Detail

DataStatistics

public DataStatistics()
               throws java.io.IOException,
                      java.net.UnknownHostException
Constructs a DataStatistics using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

DataStatistics

public DataStatistics(java.lang.Object obj)
               throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DataStatistics theDataStatistics = (DataStatistics) obj;

Construct a DataStatistics using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to DataStatistics.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a DataStatistics.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

setField

public void setField(java.lang.String field)
              throws java.io.IOException,
                     AutomationException
The field for which to gather statistics.

Specified by:
setField in interface IDataStatistics
Parameters:
field - The field (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getField

public java.lang.String getField()
                          throws java.io.IOException,
                                 AutomationException
The field for which to gather statistics.

Specified by:
getField in interface IDataStatistics
Returns:
The field
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCursorByRef

public void setCursorByRef(ICursor rhs1)
                    throws java.io.IOException,
                           AutomationException
The cursor which will generate the statistics.

Specified by:
setCursorByRef in interface IDataStatistics
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.ICursor (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSampleRate

public void setSampleRate(int maxRecords)
                   throws java.io.IOException,
                          AutomationException
The maximum number of records to sample at a time (-1 means pull all records).

Specified by:
setSampleRate in interface IDataStatistics
Parameters:
maxRecords - The maxRecords (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSampleRate

public int getSampleRate()
                  throws java.io.IOException,
                         AutomationException
The maximum number of records to sample at a time (-1 means pull all records).

Specified by:
getSampleRate in interface IDataStatistics
Returns:
The maxRecords
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSimpleStats

public void setSimpleStats(boolean simple)
                    throws java.io.IOException,
                           AutomationException
Indicates whether only simple statistics are generated.

Specified by:
setSimpleStats in interface IDataStatistics
Parameters:
simple - The simple (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isSimpleStats

public boolean isSimpleStats()
                      throws java.io.IOException,
                             AutomationException
Indicates whether only simple statistics are generated.

Specified by:
isSimpleStats in interface IDataStatistics
Returns:
The simple
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStatistics

public IStatisticsResults getStatistics()
                                 throws java.io.IOException,
                                        AutomationException
The statistics for the current field over the current cursor.

Specified by:
getStatistics in interface IDataStatistics
Returns:
A reference to a com.esri.arcgis.system.IStatisticsResults
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUniqueValues

public IEnumVARIANT getUniqueValues()
                             throws java.io.IOException,
                                    AutomationException
The unique values for the current field over the current cursor.

Specified by:
getUniqueValues in interface IDataStatistics
Returns:
A reference to a com.esri.arcgis.support.ms.stdole.IEnumVARIANT
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUniqueValueCount

public int getUniqueValueCount()
                        throws java.io.IOException,
                               AutomationException
The number of unique values for the current sample.

Specified by:
getUniqueValueCount in interface IDataStatistics
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isContinue

public boolean isContinue()
                   throws java.io.IOException,
                          AutomationException
Indicates if the cursor contains more records than the current sample.

Specified by:
isContinue in interface IDataStatistics
Returns:
The canContinue
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isCancelled

public boolean isCancelled()
                    throws java.io.IOException,
                           AutomationException
Indicates if the operation has been cancelled.

Specified by:
isCancelled in interface IDataStatistics
Returns:
The cancelled
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.