Pivotal GemFire® v8.2

Remote Querying Basics

Remote Querying Basics

Use the Pivotal GemFire native client query API to query your cached data stored on a GemFire cache server. The query is evaluated and executed on the cache server, and the results are returned to the native client.

You can also optimize your queries by defining indexes on the cache server.

The query language for the native client is essentially a subset of OQL (ODMG 3.0 Object Data Management Group,, which is based on SQL-92. OQL is a SQL-like language with extended functionality for querying complex objects, object attributes, and methods.

It is assumed that you have general familiarity with SQL querying and indexing, and with the information on the native client cache provided in previous chapters of this guide.

The online C++ and .NET API documentation located in the docs directory for the native client provides extensive details for all of the querying interfaces, classes and methods.

Query language features and grammar are described in detail in the Querying chapter of the GemFire User's Guide. This chapter describes areas that are unique to the native client.

If you are using the new pool API, you should obtain the QueryService from the pool . For information about the pool API, see Native Client Pool API.