Tabnine Logo
OExecutionPlan
Code IndexAdd Tabnine to your IDE (free)

How to use
OExecutionPlan
in
com.orientechnologies.orient.core.sql.executor

Best Java code snippets using com.orientechnologies.orient.core.sql.executor.OExecutionPlan (Showing top 2 results out of 315)

origin: com.orientechnologies/orientdb-gremlin

public int usedIndexes(OGraph graph) {
 OExecutionPlan executionPlan = this.explain(graph).get();
 if (target > 1) {
  return executionPlan.getSteps().stream().filter(step -> (step instanceof GlobalLetQueryStep)).map(s -> {
   GlobalLetQueryStep subStep = (GlobalLetQueryStep) s;
   return (int) subStep.getSubExecutionPlans().stream()
     .filter(plan -> plan.getSteps().stream().filter((step) -> step instanceof FetchFromIndexStep).count() > 0).count();
  }).reduce(0, (a, b) -> a + b);
 } else {
  return (int) executionPlan.getSteps().stream().filter((step) -> step instanceof FetchFromIndexStep).count();
 }
}
origin: com.orientechnologies/orientdb-core

@Override public OResult next() {
 if (!hasNext) {
  throw new IllegalStateException();
 }
 OResultInternal result = new OResultInternal();
 getExecutionPlan().ifPresent(x -> result.setProperty("executionPlan", x.toResult()));
 getExecutionPlan().ifPresent(x -> result.setProperty("executionPlanAsString", x.prettyPrint(0, 3)));
 hasNext = false;
 return result;
}
com.orientechnologies.orient.core.sql.executorOExecutionPlan

Javadoc

Created by luigidellaquila on 06/07/16.

Most used methods

  • getSteps
  • prettyPrint
  • toResult

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now