Class UnresolvedRelation

All Implemented Interfaces:
NamedWriteable, Writeable, TelemetryAware, Resolvable, Unresolvable

public class UnresolvedRelation extends LeafPlan implements Unresolvable, TelemetryAware
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out)
      Specified by:
      writeTo in interface Writeable
    • getWriteableName

      public String getWriteableName()
      Specified by:
      getWriteableName in interface NamedWriteable
    • info

      protected NodeInfo<UnresolvedRelation> info()
      Description copied from class: Node
      Normally, you want to use one of the static create methods to implement this.

      For QueryPlans, it is very important that the properties contain all of the expressions and references relevant to this node, and that all the properties are used in the provided constructor; otherwise query plan transformations like QueryPlan#transformExpressionsOnly(Function) will not have an effect.

      Specified by:
      info in class Node<LogicalPlan>
    • indexPattern

      public IndexPattern indexPattern()
    • frozen

      public boolean frozen()
    • resolved

      public boolean resolved()
      Specified by:
      resolved in interface Resolvable
      Specified by:
      resolved in interface Unresolvable
      Overrides:
      resolved in class LogicalPlan
    • telemetryLabel

      public String telemetryLabel()
      This is used by PlanTelemetry to collect query statistics It can return
      • "FROM" if this a |FROM idx command
      • "METRICS" if it is the result of a | METRICS idx some_aggs() BY fields command
      Specified by:
      telemetryLabel in interface TelemetryAware
      Returns:
      the label reported in the telemetry data. Only needs to be overwritten if the label doesn't match the class name.
    • expressionsResolved

      public boolean expressionsResolved()
      Specified by:
      expressionsResolved in class LogicalPlan
    • output

      public List<Attribute> output()
      Description copied from class: QueryPlan
      The ordered list of attributes (i.e. columns) this plan produces when executed. Must be called only on resolved plans, otherwise may throw an exception or return wrong results.
      Specified by:
      output in class QueryPlan<LogicalPlan>
    • metadataFields

      public List<Attribute> metadataFields()
    • indexMode

      public IndexMode indexMode()
    • unresolvedMessage

      public String unresolvedMessage()
      Description copied from interface: Unresolvable
      NOTE: Any non-null return value from this method indicates that the item in question could not be resolved.
      Specified by:
      unresolvedMessage in interface Unresolvable
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class LogicalPlan
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in class LogicalPlan
    • nodeProperties

      public List<Object> nodeProperties()
      Description copied from class: Node
      The values of all the properties that are important to this Node.
      Overrides:
      nodeProperties in class Node<LogicalPlan>
    • toString

      public String toString()
      Overrides:
      toString in class Node<LogicalPlan>
    • isTimeSeriesMode

      public boolean isTimeSeriesMode()
      Returns:
      true if and only if this relation is being loaded in "time series mode", which changes a number of behaviors in the planner.