Class ApproximationPlan.SampleProbabilityPlaceHolder

All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable
Enclosing class:
ApproximationPlan

public static class ApproximationPlan.SampleProbabilityPlaceHolder extends LeafExpression
A placeholder expression in the main approximation plan, that is replaced by the actual value after subplan execution.
  • Constructor Details

    • SampleProbabilityPlaceHolder

      public SampleProbabilityPlaceHolder(Source source)
  • Method Details

    • nullable

      public Nullability nullable()
      Specified by:
      nullable in class Expression
    • dataType

      public DataType dataType()
      Description copied from class: Expression
      The DataType returned by executing the tree rooted at this expression. If Expression.typeResolved() returns an error then the behavior of this method is undefined. It may return a valid type. Or it may throw an exception. Or it may return a totally nonsensical type.
      Specified by:
      dataType in class Expression
    • getWriteableName

      public String getWriteableName()
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Throws:
      IOException
    • info

      protected NodeInfo<? extends Expression> 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<Expression>
    • toString

      public String toString()
      Overrides:
      toString in class Expression
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Node<Expression>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Node<Expression>