Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Select Builder

Otávio Santana edited this page · 6 revisions

The class Select Builder is a really simple way to run complex queries with the interface you can run query with:

Where Clause

  • eq: equal
  • in: clause stating the provided column must be equal
  • lt: lesser
  • lte: lesser than or equal
  • gt: greater
  • gte: greater than or equal
  • between: which value begin inclusive and value end and exclusive.
  • betweenInclusive: which value both are inclusive.
  • betweenExclusive: which value both are exclusive.

Order

  • asc: Ascending ordering
  • desc: Descending ordering

Others

  • withConsistencyLevel: Sets the consistency level for the query
  • withTracing: Enables or not tracing for this query.
  • allowFiltering: Adds an ALLOW FILTERING directive to this statement.
  • limit: Adds a LIMIT clause to this statement.
  • withFetchSize: Sets the query fetch size.
  • withRetryPolicy: Sets the retry policy to use for this query.

Run:

  • execute: run the query.
  • executeAsync(asynCalBack): perform query asynchronously with callback an asynchronous with asynCalBack.

Examples

To more information:

See: SelectBuilder Interface

Something went wrong with that request. Please try again.