public class ResultSet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.Exception |
error
An error that might have occurred while executing the query.
|
com.vmware.vise.data.query.FacetInfo[] |
facets
The retrieved facets (internal use only).
|
ResultItem[] |
items
The matched objects and the requested data on them.
|
java.lang.String |
queryName
The name of the
QuerySpec that resulted in this
ResultSet , if a name was specified to begin with. |
java.lang.Integer |
totalMatchedObjectCount
The total number of objects that matched the given query, regardless of the actual
number that is returned in items.
|
Constructor and Description |
---|
ResultSet()
Default constructor.
|
ResultSet(ResultSet original)
Creates a shallow copy of the specified
ResultSet . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
@optional public java.lang.String queryName
QuerySpec
that resulted in this
ResultSet
, if a name was specified to begin with.@optional public java.lang.Integer totalMatchedObjectCount
Important: This value should only be set by adapters that discover new objects, i.e. it should remain zero for all property providers as they are only returning properties for known objects.
public ResultItem[] items
public com.vmware.vise.data.query.FacetInfo[] facets
public java.lang.Exception error
The result of any given query can be coming from one or more data sources (a combination of data adapters and property providers), the error property can be either:
DataException
to represent the failure to fetch data for
some objects and properties.CompositeException
to represent a collection of errors
(internal use only).Exception
for other errors (internal use only).DataException
public ResultSet()
public ResultSet(ResultSet original)
ResultSet
.original
- the object that must be copiedCopyright @ 2013-2018 VMware, Inc. All rights reserved.