Querying the Space

This section explains the various mechanisms offered by GigaSpaces XAP to query the space for data, as well as related topics, such as how to use indexing to boost query performance and how the space can be iterated to fetch entries more efficiently.

Id Queries
Id Based query - Primary Key based object retrieval from space.

Query by template
Template matching (a.k.a. Match by example) is a simple way to query the space.

SQL Query
The SQLQuery class is used to query the space using SQL-like syntax.

SQL Function
You can query the Space using built in functions and user defined functions.

Geospatial Queries
GeoSpatial queries make use of geometry data types such as points, circles and polygons and these queries consider the spatial relationship between these geometries.

Free text search
Search for records that include one or more words within a free text field.

Full text search
Full text search capability leveraging the Lucene search engine library.

Nested property queries
Query nested properties, maps and collections using SQL queries

Query with user defined classes
Query by matching a user defined class.

Paging support
Reading large number of objects using multiple queries in one call in a continuous manner.

Partial results - Projection
Obtaining partial results when querying the space to improve application performance and reduce memory footprint.

Explain Plan
Explain Plan can be used to obtain a description of the strategy or plan that XAP uses to implement a specific SQLQuery.

Additional Resources