com.thinkaurelius.titan.graphdb.query

## Class StandardQueryDescription

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

- All Implemented Interfaces:
    QueryDescription

      public class StandardQueryDescription
      extends Object
      implements QueryDescription

  Default implementation of `QueryDescription`.
  Author:
    Matthias Broecheler (me@matthiasb.com)

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `StandardQueryDescription.StandardSubQuery`

    - ### Nested classes/interfaces inherited from interface com.thinkaurelius.titan.core.QueryDescription

      `QueryDescription.SubQuery`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `StandardQueryDescription(int numVertices, BaseVertexCentricQuery query)`
    `StandardQueryDescription(int numKeys, GraphCentricQuery query)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getNoCombinedQueries()` Returns how many individual queries are combined into this query, meaning, how many queries will be executed in one batch.
    `int` | `getNoSubQueries()` Returns the number of sub-queries this query is comprised of.
    `Condition` | `getQueryCondition()` Returns the query condition for this query
    `OrderList` | `getQueryOrder()` Returns the defined order(s) of this query
    `List<StandardQueryDescription.StandardSubQuery>` | `getSubQueries()` Returns a list of all sub-queries that comprise this query
    `String` | `toString()` Returns a string representation of the entire query

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

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

- - ### Constructor Detail

    - #### StandardQueryDescription

          public StandardQueryDescription(int numKeys,
                                  GraphCentricQuery query)

    - #### StandardQueryDescription

          public StandardQueryDescription(int numVertices,
                                  BaseVertexCentricQuery query)

  - ### Method Detail

    - #### toString

          public String toString()

      Description copied from interface: `QueryDescription`
      Returns a string representation of the entire query
      Specified by:
        `toString` in interface `QueryDescription`
      Overrides:
        `toString` in class `Object`

    - #### getQueryOrder

          public OrderList getQueryOrder()

      Returns the defined order(s) of this query
      Returns:

    - #### getQueryCondition

          public Condition getQueryCondition()

      Returns the query condition for this query
      Returns:

    - #### getNoCombinedQueries

          public int getNoCombinedQueries()

      Description copied from interface: `QueryDescription`
      Returns how many individual queries are combined into this query, meaning, how many queries will be executed in one batch.
      Specified by:
        `getNoCombinedQueries` in interface `QueryDescription`
      Returns:

    - #### getSubQueries

          public List<StandardQueryDescription.StandardSubQuery> getSubQueries()

      Description copied from interface: `QueryDescription`
      Returns a list of all sub-queries that comprise this query
      Specified by:
        `getSubQueries` in interface `QueryDescription`
      Returns:

    - #### getNoSubQueries

          public int getNoSubQueries()

      Description copied from interface: `QueryDescription`
      Returns the number of sub-queries this query is comprised of. Each sub-query represents one OR clause, i.e., the union of each sub-query's result is the overall result.
      Specified by:
        `getNoSubQueries` in interface `QueryDescription`
      Returns:

Copyright © 2012–2014. All rights reserved.