Class OrientGraphQuery

java.lang.Object
com.tinkerpop.blueprints.util.DefaultQuery
com.tinkerpop.blueprints.util.DefaultGraphQuery
com.tinkerpop.blueprints.impls.orient.OrientGraphQuery
All Implemented Interfaces:
com.tinkerpop.blueprints.GraphQuery, com.tinkerpop.blueprints.Query

public class OrientGraphQuery extends com.tinkerpop.blueprints.util.DefaultGraphQuery
OrientDB implementation for Graph query.
Author:
Luca Garulli (l.garulli--(at)--orientdb.com) (http://orientdb.com)
  • Field Details

  • Constructor Details

    • OrientGraphQuery

      protected OrientGraphQuery(com.tinkerpop.blueprints.Graph iGraph)
  • Method Details

    • labels

      public com.tinkerpop.blueprints.Query labels(String... labels)
      (Blueprints Extension) Sets the labels to filter. Labels are bound to Class names by default.
      Parameters:
      labels - String vararg of labels
      Returns:
      Current Query Object to allow calls in chain.
    • skip

      public com.tinkerpop.blueprints.Query skip(int iSkip)
      Skips first iSkip items from the result set.
      Parameters:
      iSkip - Number of items to skip on result set
      Returns:
      Current Query Object to allow calls in chain.
    • order

      public com.tinkerpop.blueprints.Query order(String props)
      (Blueprints Extension) Sets the order of results by a field in ascending (asc) order. This is translated on ORDER BY in the underlying SQL query.
      Parameters:
      props - Field to order by
      Returns:
      Current Query Object to allow calls in chain.
    • order

      public com.tinkerpop.blueprints.Query order(String props, String dir)
      (Blueprints Extension) Sets the order of results by a field in ascending (asc) or descending (desc) order based on dir parameter. This is translated on ORDER BY in the underlying SQL query.
      Parameters:
      props - Field to order by
      dir - Direction. Use "asc" for ascending and "desc" for descending
      Returns:
      Current Query Object to allow calls in chain.
    • vertices

      public Iterable<com.tinkerpop.blueprints.Vertex> vertices()
      Returns the result set of the query as iterable vertices.
      Specified by:
      vertices in interface com.tinkerpop.blueprints.Query
      Overrides:
      vertices in class com.tinkerpop.blueprints.util.DefaultGraphQuery
    • edges

      public Iterable<com.tinkerpop.blueprints.Edge> edges()
      Returns the result set of the query as iterable edges.
      Specified by:
      edges in interface com.tinkerpop.blueprints.Query
      Overrides:
      edges in class com.tinkerpop.blueprints.util.DefaultGraphQuery
    • getFetchPlan

      public String getFetchPlan()
      (Blueprints Extension) Returns the fetch plan used.
    • setFetchPlan

      public void setFetchPlan(String fetchPlan)
      (Blueprints Extension) Sets the fetch plan to use on returning result set.
    • manageLabels

      protected void manageLabels(boolean usedWhere, StringBuilder text)
    • hasCustomPredicate

      protected boolean hasCustomPredicate()
    • manageFilters

      protected List<Object> manageFilters(StringBuilder text)
    • generateFilterValue

      protected void generateFilterValue(StringBuilder text, Object iValue)