Region.Query Method (String, UInt32) |
Executes the query on the server based on the predicate.
Valid only for a Native Client region.
Namespace: GemStone.GemFire.CacheAssembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntaxpublic ISelectResults Query(
string predicate,
uint timeout
)
Public Function Query (
predicate As String,
timeout As UInteger
) As ISelectResults
public:
ISelectResults^ Query(
String^ predicate,
unsigned int timeout
)
member Query :
predicate : string *
timeout : uint32 -> ISelectResults
Parameters
- predicate
- Type: System.String
The query predicate (just the WHERE clause) or the entire query to execute - timeout
- Type: System.UInt32
The time (in seconds) to wait for the query response, optional
Return Value
Type:
ISelectResults
The SelectResults which can either be a ResultSet or a StructSet.
ExceptionsException | Condition |
---|
IllegalArgumentException |
If the predicate is empty.
|
IllegalStateException |
If some error occurred.
|
CacheServerException |
If an exception is received from the Java cache server.
|
NotConnectedException |
if not connected to the GemFire system because the client cannot
establish usable connections to any of the servers given to it.
For pools configured with locators, if no locators are available, innerException
of NotConnectedException is set to NoAvailableLocatorsException.
|
MessageException |
If the message received from server could not be handled. This will
be the case when an unregistered typeId is received in the reply or
reply is not well formed. More information can be found in the log.
|
QueryException |
If some query error occurred at the server.
|
TimeoutException |
if the operation timed out
|
CacheClosedException |
if the cache has been closed
|
See Also