Tabnine Logo
ResultIterator.explain
Code IndexAdd Tabnine to your IDE (free)

How to use
explain
method
in
org.apache.phoenix.iterate.ResultIterator

Best Java code snippets using org.apache.phoenix.iterate.ResultIterator.explain (Showing top 20 results out of 315)

origin: apache/phoenix

@Override
public void explain(List<String> planSteps) {
  delegate.explain(planSteps);
}
origin: apache/phoenix

@Override
public void explain(List<String> planSteps) {
  delegate.explain(planSteps);
}
origin: apache/phoenix

@Override
public void explain(List<String> planSteps) {
  resultIterator.explain(planSteps);
}
origin: apache/phoenix

@Override
public void explain(List<String> planSteps) {
  scanIterator.explain(planSteps);
}
origin: apache/phoenix

@Override
public void explain(List<String> planSteps) {
  iterator.explain(planSteps);
}
origin: apache/phoenix

private List<String> getPlanSteps(ResultIterator iterator) {
  List<String> planSteps = Lists.newArrayListWithExpectedSize(5);
  iterator.explain(planSteps);
  return planSteps;
}
origin: apache/phoenix

@Override
public void explain(List<String> planSteps) {
  delegate.explain(planSteps);
  planSteps.add("CLIENT FILTER BY " + expression.toString());
}
origin: apache/phoenix

@Override
public void explain(List<String> planSteps) {
  delegate.explain(planSteps);
  planSteps.add("CLIENT" + (offset == null || offset == 0 ? "" : " OFFSET " + offset)
      + (limit == null ? "" : " TOP " + limit + " ROW" + (limit == 1 ? "" : "S")) + " SORTED BY "
      + orderByExpressions.toString());
}
origin: apache/phoenix

public static String getExplainPlan(ResultIterator iterator) throws SQLException {
  List<String> steps = Lists.newArrayList();
  iterator.explain(steps);
  StringBuilder buf = new StringBuilder();
  for (String step : steps) {
    buf.append(step);
    buf.append('\n');
  }
  if (buf.length() > 0) {
    buf.setLength(buf.length()-1);
  }
  return buf.toString();
}
origin: apache/phoenix

@Override
public ExplainPlan getExplainPlan() throws SQLException {
  List<String> steps = new ArrayList<String>();
  steps.add("UNION ALL OVER " + this.plans.size() + " QUERIES");
  ResultIterator iterator = iterator();
  iterator.explain(steps);
  // Indent plans steps nested under union, except last client-side merge/concat step (if there is one)
  int offset = !orderBy.getOrderByExpressions().isEmpty() && limit != null ? 2 : limit != null ? 1 : 0;
  for (int i = 1 ; i < steps.size()-offset; i++) {
    steps.set(i, "    " + steps.get(i));
  }
  return new ExplainPlan(steps);
}
origin: com.aliyun.phoenix/ali-phoenix-core

@Override
public void explain(List<String> planSteps) {
  resultIterator.explain(planSteps);
}
origin: com.aliyun.phoenix/ali-phoenix-core

private List<String> getPlanSteps(ResultIterator iterator) {
  List<String> planSteps = Lists.newArrayListWithExpectedSize(5);
  iterator.explain(planSteps);
  return planSteps;
}
origin: com.aliyun.phoenix/ali-phoenix-core

private List<String> getPlanSteps(ResultIterator iterator){
  List<String> planSteps = Lists.newArrayListWithExpectedSize(5);
  iterator.explain(planSteps);
  return planSteps;
}
origin: org.apache.phoenix/phoenix-core

private List<String> getPlanSteps(ResultIterator iterator) {
  List<String> planSteps = Lists.newArrayListWithExpectedSize(5);
  iterator.explain(planSteps);
  return planSteps;
}
origin: org.apache.phoenix/phoenix-core

@Override
public void explain(List<String> planSteps) {
  delegate.explain(planSteps);
  planSteps.add("CLIENT" + (offset == null || offset == 0 ? "" : " OFFSET " + offset)
      + (limit == null ? "" : " TOP " + limit + " ROW" + (limit == 1 ? "" : "S")) + " SORTED BY "
      + orderByExpressions.toString());
}
origin: com.aliyun.phoenix/ali-phoenix-core

@Override
public void explain(List<String> planSteps) {
  delegate.explain(planSteps);
  planSteps.add("CLIENT" + (offset == null || offset == 0 ? "" : " OFFSET " + offset)
      + (limit == null ? "" : " TOP " + limit + " ROW" + (limit == 1 ? "" : "S")) + " SORTED BY "
      + orderByExpressions.toString());
}
origin: org.apache.phoenix/phoenix-core

@Override
public void explain(List<String> planSteps) {
  delegate.explain(planSteps);
  planSteps.add("CLIENT FILTER BY " + expression.toString());
}
origin: com.aliyun.phoenix/ali-phoenix-core

@Override
public void explain(List<String> planSteps) {
  delegate.explain(planSteps);
  planSteps.add("CLIENT FILTER BY " + expression.toString());
}
origin: org.apache.phoenix/phoenix-core

public static String getExplainPlan(ResultIterator iterator) throws SQLException {
  List<String> steps = Lists.newArrayList();
  iterator.explain(steps);
  StringBuilder buf = new StringBuilder();
  for (String step : steps) {
    buf.append(step);
    buf.append('\n');
  }
  if (buf.length() > 0) {
    buf.setLength(buf.length()-1);
  }
  return buf.toString();
}
origin: com.aliyun.phoenix/ali-phoenix-core

@Override
public ExplainPlan getExplainPlan() throws SQLException {
  List<String> steps = new ArrayList<>();
  ResultIterator iterator = iterator();
  iterator.explain(steps);
  return new ExplainPlan(steps);
}
org.apache.phoenix.iterateResultIteratorexplain

Popular methods of ResultIterator

  • close
  • next
    Grab the next row's worth of values. The iterator will return a Tuple.

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top PhpStorm 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