com.thinkaurelius.titan.graphdb.query

## Class BaseQuery

- java.lang.Object
- - com.thinkaurelius.titan.graphdb.query.BaseQuery

- All Implemented Interfaces:
    Query
  Direct Known Subclasses:
    BaseVertexCentricQuery, GraphCentricQuery, IndexQuery, IndexQueryBuilder, JointIndexQuery, KVQuery, RawQuery, SliceQuery

      public class BaseQuery
      extends Object
      implements Query

  Standard implementation of `Query`.
  Author:
    Matthias Broecheler (me@matthiasb.com)

- - ### Field Summary

    - ### Fields inherited from interface com.thinkaurelius.titan.graphdb.query.Query

      `NO_LIMIT`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BaseQuery()`
    `BaseQuery(int limit)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getLimit()`
    `boolean` | `hasLimit()` Whether this query has a defined limit
    `BaseQuery` | `setLimit(int limit)` Sets the limit of the query if it wasn't specified in the constructor

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BaseQuery

          public BaseQuery()

    - #### BaseQuery

          public BaseQuery(int limit)

  - ### Method Detail

    - #### setLimit

          public BaseQuery setLimit(int limit)

      Sets the limit of the query if it wasn't specified in the constructor
      Parameters:
        `limit` -
      Returns:

    - #### getLimit

          public int getLimit()

      Specified by:
        `getLimit` in interface `Query`
      Returns:
        The maximum number of results this query should return

    - #### hasLimit

          public boolean hasLimit()

      Description copied from interface: `Query`
      Whether this query has a defined limit
      Specified by:
        `hasLimit` in interface `Query`
      Returns:

Copyright © 2012–2014. All rights reserved.