Class PlanStringBuilder

java.lang.Object
org.apache.drill.common.PlanStringBuilder

public class PlanStringBuilder extends Object
Builds a string in Drill's "plan string" format: that shown in the text version of EXPLAIN PLAN FOR output. Example:

 Mumble[foo=fred, bar=barney]

Similar to the Guava Objects.ToStringHelper class but for the Drill "plan-string" format. Use this class for any object that may be displayed in an query plan.

Example usage:


 public String toString() {
   return PlanStringBuilder(this)
     .field("foo", foo)
     .field("bar", bar)
     .toString();
 }
  • Constructor Details

    • PlanStringBuilder

      public PlanStringBuilder(Object node)
    • PlanStringBuilder

      public PlanStringBuilder(String node)
  • Method Details