Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package apache
    Definition Classes
    org
  • package spark
    Definition Classes
    apache
  • package sql
    Definition Classes
    spark
  • package catalyst

    Catalyst is a library for manipulating relational query plans.

    Catalyst is a library for manipulating relational query plans. All classes in catalyst are considered an internal API to Spark SQL and are subject to change between minor releases.

    Definition Classes
    sql
  • package trees

    A library for easily manipulating trees of operators.

    A library for easily manipulating trees of operators. Operators that extend TreeNode are granted the following interface:

    • Scala collection like methods (foreach, map, flatMap, collect, etc)

    - transform - accepts a partial function that is used to generate a new tree. When the partial function can be applied to a given tree segment, that segment is replaced with the result. After attempting to apply the partial function to a given node, the transform function recursively attempts to apply the function to that node's children.

    • debugging support - pretty printing, easy splicing of trees, etc.
    Definition Classes
    catalyst
  • AlwaysProcess
  • BinaryLike
  • CurrentOrigin
  • LeafLike
  • Origin
  • QuaternaryLike
  • TernaryLike
  • TreeNode
  • TreeNodeRef
  • TreeNodeTag
  • TreePattern
  • TreePatternBits
  • UnaryLike

abstract class TreeNode[BaseType <: TreeNode[BaseType]] extends Product with TreePatternBits

Self Type
BaseType
Linear Supertypes
TreePatternBits, Product, Equals, AnyRef, Any
Known Subclasses
FieldName, FieldPosition, GetColumnByOrdinal, GetViewColumnByNameAndOrdinal, LeafNodeWithoutStats, MultiAlias, NamedRelation, PartitionSpec, RelationTimeTravel, ResolvedDBObjectName, ResolvedFieldName, ResolvedFieldPosition, ResolvedNamespace, ResolvedNonPersistentFunc, ResolvedPartitionSpec, ResolvedPersistentFunc, ResolvedStar, ResolvedTable, ResolvedView, Star, TempResolvedColumn, UnresolvedAlias, UnresolvedAttribute, UnresolvedDBObjectName, UnresolvedDeserializer, UnresolvedExtractValue, UnresolvedFieldName, UnresolvedFieldPosition, UnresolvedFunc, UnresolvedFunction, UnresolvedGenerator, UnresolvedHaving, UnresolvedInlineTable, UnresolvedNamespace, UnresolvedOrdinal, UnresolvedPartitionSpec, UnresolvedRegex, UnresolvedRelation, UnresolvedSeed, UnresolvedStar, UnresolvedSubqueryColumnAliases, UnresolvedTable, UnresolvedTableOrView, UnresolvedTableValuedFunction, UnresolvedView, HiveTableRelation, TemporaryViewRelation, UnresolvedCatalogRelation, DummyExpressionHolder, Abs, Acos, Acosh, Add, AddMonths, AddMonthsBase, AesDecrypt, AesEncrypt, AggregateWindowFunction, Alias, And, AnsiCast, ApplyFunctionExpression, ArrayAggregate, ArrayBasedSimpleHigherOrderFunction, ArrayBinaryLike, ArrayContains, ArrayDistinct, ArrayExcept, ArrayExists, ArrayFilter, ArrayForAll, ArrayIntersect, ArrayJoin, ArrayMax, ArrayMin, ArrayPosition, ArrayRemove, ArrayRepeat, ArraySize, ArraySort, ArraySortLike, ArrayTransform, ArrayUnion, ArraysOverlap, ArraysZip, Ascii, Asin, Asinh, AssertTrue, AtLeastNNonNulls, Atan, Atan2, Atanh, Attribute, AttributeReference, BRound, Base64, BaseGroupingSets, Bin, BinaryArithmetic, BinaryArrayExpressionWithImplicitCast, BinaryComparison, BinaryExpression, BinaryMathExpression, BinaryOperator, BinaryPad, BinaryPredicate, BitLength, BitwiseAnd, BitwiseCount, BitwiseGet, BitwiseNot, BitwiseOr, BitwiseXor, BloomFilterMightContain, BoundReference, Bucket, CallMethodViaReflection, CaseWhen, Cast, CastBase, CastTimestampNTZToLong, Cbrt, Ceil, CheckOverflow, CheckOverflowInSum, Chr, Coalesce, CollectionGenerator, ComplexTypeMergingExpression, Concat, ConcatWs, ConditionalExpression, Contains, Conv, ConvertTimezone, Cos, Cosh, Cot, Crc32, CreateArray, CreateMap, CreateNamedStruct, Csc, CsvToStructs, Cube, CumeDist, CurrentBatchTimestamp, CurrentCatalog, CurrentDatabase, CurrentDate, CurrentRow, CurrentTimeZone, CurrentTimestamp, CurrentTimestampLike, CurrentUser, DateAdd, DateAddInterval, DateAddYMInterval, DateDiff, DateFormatClass, DateFromUnixDate, DateSub, DatetimeSub, DayOfMonth, DayOfWeek, DayOfYear, Days, Decode, DenseRank, DivModLike, Divide, DivideDTInterval, DivideInterval, DivideYMInterval, DynamicPruning, DynamicPruningExpression, DynamicPruningSubquery, ElementAt, Elt, Encode, EndsWith, EqualNullSafe, EqualTo, EulerNumber, Exists, Exp, ExpectsInputTypes, Explode, ExplodeBase, Expm1, Expression, ExpressionProxy, ExpressionWithRandomSeed, Extract, ExtractANSIIntervalDays, ExtractANSIIntervalHours, ExtractANSIIntervalMinutes, ExtractANSIIntervalMonths, ExtractANSIIntervalSeconds, ExtractANSIIntervalYears, ExtractIntervalDays, ExtractIntervalHours, ExtractIntervalMinutes, ExtractIntervalMonths, ExtractIntervalPart, ExtractIntervalSeconds, ExtractIntervalYears, ExtractValue, Factorial, FindInSet, Flatten, Floor, FormatNumber, FormatString, FrameLessOffsetWindowFunction, FromUTCTimestamp, FromUnixTime, Generator, GeneratorOuter, GetArrayItem, GetArrayStructFields, GetDateField, GetJsonObject, GetMapValue, GetMapValueUtil, GetStructField, GetTimeField, GetTimestamp, GreaterThan, GreaterThanOrEqual, Greatest, Grouping, GroupingID, GroupingSets, HashExpression, Hex, HigherOrderFunction, HiveHash, Hour, Hours, Hypot, ILike, If, ImplicitCastInputTypes, In, InSet, InSubquery, InitCap, Inline, InputFileBlockLength, InputFileBlockStart, InputFileName, IntegralDivide, IntegralToTimestampBase, IntervalNumOperation, IsNaN, IsNotNull, IsNull, JsonObjectKeys, JsonToStructs, JsonTuple, KnownFloatingPointNormalized, KnownNotNull, KnownNullable, Lag, LambdaFunction, LastDay, LateralSubquery, Lead, LeafExpression, LeafMathExpression, Least, Left, Length, LengthOfJsonArray, LessThan, LessThanOrEqual, Levenshtein, Like, LikeAll, LikeAllBase, LikeAny, LikeAnyBase, ListQuery, Literal, LocalTimestamp, Log, Log10, Log1p, Log2, Logarithm, Lower, MakeDTInterval, MakeDate, MakeDecimal, MakeInterval, MakeTimestamp, MakeYMInterval, MapBasedSimpleHigherOrderFunction, MapConcat, MapContainsKey, MapEntries, MapFilter, MapFromArrays, MapFromEntries, MapKeys, MapValues, MapZipWith, Md5, MicrosToTimestamp, MillisToTimestamp, Minute, MonotonicallyIncreasingID, Month, Months, MonthsBetween, MultiLikeBase, Multiply, MultiplyDTInterval, MultiplyInterval, MultiplyYMInterval, Murmur3Hash, NTile, NaNvl, NamePlaceholder, NamedExpression, NamedLambdaVariable, NextDay, NonSQLExpression, Nondeterministic, Not, NotLikeAll, NotLikeAny, Now, NthValue, NullIf, NullIntolerant, Nvl, Nvl2, OctetLength, OffsetWindowFunction, Or, OuterReference, Overlay, ParseToDate, ParseToTimestamp, ParseUrl, PartitionTransformExpression, PercentRank, Pi, PlanExpression, Pmod, PosExplode, Pow, PreciseTimestampConversion, Predicate, PrettyAttribute, PrettyPythonUDF, PrintToStderr, PromotePrecision, PythonUDF, Quarter, QuaternaryExpression, RDG, RLike, RaiseError, Rand, Randn, Rank, RankLike, RegExpExtract, RegExpExtractAll, RegExpExtractBase, RegExpReplace, Remainder, ReplicateRows, Reverse, Right, Rint, Rollup, Round, RoundBase, RoundCeil, RoundFloor, RowNumber, RowNumberLike, RuntimeReplaceable, RuntimeReplaceableAggregate, ScalaUDF, ScalarSubquery, SchemaOfCsv, SchemaOfJson, Sec, Second, SecondWithFraction, SecondsToTimestamp, Sentences, SeptenaryExpression, Sequence, SessionWindow, Sha1, Sha2, ShiftLeft, ShiftRight, ShiftRightUnsigned, Shuffle, Signum, SimpleHigherOrderFunction, Sin, Sinh, Size, SizeBasedWindowFunction, Slice, SortArray, SortOrder, SortPrefix, SoundEx, SparkPartitionID, SparkVersion, SpecialFrameBoundary, SpecifiedWindowFrame, SplitPart, Sqrt, Stack, StartsWith, Stateful, String2StringExpression, String2TrimExpression, StringDecode, StringInstr, StringLPad, StringLocate, StringPredicate, StringRPad, StringRegexExpression, StringRepeat, StringReplace, StringSpace, StringSplit, StringSplitSQL, StringToMap, StringTranslate, StringTrim, StringTrimBoth, StringTrimLeft, StringTrimRight, StructsToCsv, StructsToJson, SubqueryExpression, Substring, SubstringIndex, Subtract, SubtractDates, SubtractTimestamps, SupportQueryContext, TaggingExpression, Tan, Tanh, TernaryExpression, TimeAdd, TimeWindow, TimeZoneAwareExpression, TimestampAdd, TimestampAddYMInterval, TimestampDiff, TimestampFormatterHelper, TimestampToLongBase, ToBinary, ToDegrees, ToNumber, ToRadians, ToTimestamp, ToUTCTimestamp, ToUnixTimestamp, TransformExpression, TransformKeys, TransformValues, TruncDate, TruncInstant, TruncTimestamp, TryAdd, TryCast, TryDivide, TryElementAt, TryEval, TryMultiply, TrySubtract, TryToBinary, TryToNumber, TypeOf, UTCTimestamp, UnBase64, UnaryExpression, UnaryLogExpression, UnaryMathExpression, UnaryMinus, UnaryPositive, UnboundedFollowing, UnboundedPreceding, Unevaluable, Unhex, UnixDate, UnixMicros, UnixMillis, UnixSeconds, UnixTime, UnixTimestamp, UnresolvedNamedLambdaVariable, UnresolvedWindowExpression, UnscaledValue, UnspecifiedFrame, UpCast, UpdateFields, Upper, UserDefinedGenerator, Uuid, WeekDay, WeekOfYear, WidthBucket, WindowExpression, WindowFrame, WindowFunction, WindowSpecDefinition, WithField, XxHash64, Year, YearOfWeek, Years, ZipWith, AggregateExpression, AggregateFunction, ApproxCountDistinctForIntervals, ApproximatePercentile, Average, AverageBase, BitAggregate, BitAndAgg, BitOrAgg, BitXorAgg, BloomFilterAggregate, BoolAnd, BoolOr, CentralMomentAgg, Collect, CollectList, CollectSet, Corr, Count, CountIf, CountMinSketchAgg, CovPopulation, CovSample, Covariance, DeclarativeAggregate, First, HistogramNumeric, HyperLogLogPlusPlus, ImperativeAggregate, Kurtosis, Last, Max, MaxBy, MaxMinBy, Min, MinBy, NoOp, PearsonCorrelation, Percentile, PercentileBase, PercentileCont, PercentileDisc, PivotFirst, Product, RegrAvgX, RegrAvgY, RegrCount, RegrR2, Skewness, StddevPop, StddevSamp, Sum, SumBase, TryAverage, TrySum, TypedImperativeAggregate, V2Aggregator, VariancePop, VarianceSamp, Block, CodeBlock, CodegenFallback, EmptyBlock, AssertNotNull, CatalystToExternalMap, CreateExternalRow, DecodeUsingSerializer, EncodeUsingSerializer, ExternalMapToCatalyst, GetExternalRowField, InitializeJavaBean, Invoke, InvokeLike, LambdaVariable, MapObjects, NewInstance, StaticInvoke, UnresolvedCatalystToExternalMap, UnresolvedMapObjects, UnwrapOption, ValidateExternalType, WrapOption, XPathBoolean, XPathDouble, XPathExtract, XPathFloat, XPathInt, XPathList, XPathLong, XPathShort, XPathString, NormalizeNaNAndZero, OrderedJoin, ScalarSubqueryReference, QueryPlan, AddColumns, AddPartitions, Aggregate, AlterColumn, AlterTableCommand, AlterViewAs, AnalysisHelper, AnalysisOnlyCommand, AnalyzeColumn, AnalyzeTable, AnalyzeTables, AppendColumns, AppendColumnsWithObject, AppendData, ArrowEvalPython, AsOfJoin, Assignment, AttachDistributedSequence, BaseEvalPython, BatchEvalPython, BinaryCommand, BinaryNode, CTERelationDef, CTERelationRef, CacheTable, CacheTableAsSelect, CoGroup, CollectMetrics, Command, CommentOnNamespace, CommentOnTable, CreateFunction, CreateIndex, CreateNamespace, CreateTable, CreateTableAsSelect, CreateView, Deduplicate, DeleteAction, DeleteFromTable, DeleteFromTableWithFilters, DescribeColumn, DescribeFunction, DescribeNamespace, DescribeRelation, DeserializeToObject, Distinct, DomainJoin, DropColumns, DropFunction, DropIndex, DropNamespace, DropPartitions, DropTable, DropView, EventTimeWatermark, Except, Expand, ExposesMetadataColumns, Filter, FlatMapCoGroupsInPandas, FlatMapGroupsInPandas, FlatMapGroupsInR, FlatMapGroupsInRWithArrow, FlatMapGroupsWithState, Generate, GlobalLimit, IgnoreCachedData, InsertAction, InsertIntoDir, InsertIntoStatement, InsertStarAction, Intersect, Join, LateralJoin, LeafCommand, LeafNode, LeafParsedStatement, LoadData, LocalLimit, LocalRelation, LogicalPlan, MapElements, MapGroups, MapInPandas, MapPartitions, MapPartitionsInR, MapPartitionsInRWithArrow, MergeAction, MergeIntoTable, NoopCommand, ObjectConsumer, ObjectProducer, OneRowRelation, OrderPreservingUnaryNode, OverwriteByExpression, OverwritePartitionsDynamic, ParsedStatement, Pivot, Project, PythonMapInArrow, Range, RebalancePartitions, RecoverPartitions, RefreshFunction, RefreshTable, RenameColumn, RenamePartitions, RenameTable, RepairTable, Repartition, RepartitionByExpression, RepartitionOperation, ReplaceColumns, ReplaceData, ReplaceTable, ReplaceTableAsSelect, ResolvedHint, ReturnAnswer, RowLevelWrite, Sample, ScriptTransformation, SerializeFromObject, SetCatalogAndNamespace, SetNamespaceLocation, SetNamespaceProperties, SetOperation, SetTableLocation, SetTableProperties, SetTableSerDeProperties, SetViewProperties, ShowColumns, ShowCreateTable, ShowFunctions, ShowNamespaces, ShowPartitions, ShowTableExtended, ShowTableProperties, ShowTables, ShowViews, Sort, Subquery, SubqueryAlias, SupportsSubquery, Tail, TruncatePartition, TruncateTable, TypedFilter, UnaryCommand, UnaryNode, UnaryParsedStatement, UncacheTable, Union, UnresolvedHint, UnresolvedWith, UnsetTableProperties, UnsetViewProperties, UpdateAction, UpdateStarAction, UpdateTable, V2CreateTablePlan, V2PartitionCommand, V2WriteCommand, View, Window, WithCTE, WithWindowDefinition, HashPartitioning, PartitioningCollection, RangePartitioning, StreamingRelationV2, WriteToStream, WriteToStreamStatement, DataSourceV2Relation, DataSourceV2ScanRelation, StreamingDataSourceV2Relation
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TreeNode
  2. TreePatternBits
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TreeNode()

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean
    Definition Classes
    Equals
  2. abstract def children: Seq[BaseType]

    Returns a Seq of the children of this node.

    Returns a Seq of the children of this node. Children should not change. Immutability required for containsChild optimization

  3. abstract def productArity: Int
    Definition Classes
    Product
  4. abstract def productElement(n: Int): Any
    Definition Classes
    Product
  5. abstract def simpleStringWithNodeId(): String

    ONE line description of this node containing the node identifier.

  6. abstract def verboseString(maxFields: Int): String

    ONE line description of this node with more information

  7. abstract def withNewChildrenInternal(newChildren: IndexedSeq[BaseType]): BaseType
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(number: Int): TreeNode[_]

    Returns the tree node at the specified number, used primarily for interactive debugging.

    Returns the tree node at the specified number, used primarily for interactive debugging. Numbers for each node can be found in the numberedTreeString.

    Note that this cannot return BaseType because logical plan's plan node might return physical plan for innerChildren, e.g. in-memory relation logical plan node has a reference to the physical plan node it is referencing.

  5. def argString(maxFields: Int): String

    Returns a string representing the arguments to this node, minus any children

  6. def asCode: String

    Returns a 'scala code' representation of this TreeNode and its children.

    Returns a 'scala code' representation of this TreeNode and its children. Intended for use when debugging where the prettier toString function is obfuscating the actual structure. In the case of 'pure' TreeNodes that only contain primitives and other TreeNodes, the result can be pasted in the REPL to build an equivalent Tree.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): BaseType
    Definition Classes
    TreeNode → AnyRef
  9. def collect[B](pf: PartialFunction[BaseType, B]): Seq[B]

    Returns a Seq containing the result of applying a partial function to all elements in this tree on which the function is defined.

  10. def collectFirst[B](pf: PartialFunction[BaseType, B]): Option[B]

    Finds and returns the first TreeNode of the tree for which the given partial function is defined (pre-order), and applies the partial function to it.

  11. def collectLeaves(): Seq[BaseType]

    Returns a Seq containing the leaves in this tree.

  12. final def containsAllPatterns(patterns: TreePattern*): Boolean

    returns

    true if every bit for patterns is set; false otherwise.

    Definition Classes
    TreePatternBits
  13. final def containsAnyPattern(patterns: TreePattern*): Boolean

    returns

    true if at least one bit for patterns is set; false otherwise.

    Definition Classes
    TreePatternBits
  14. lazy val containsChild: Set[TreeNode[_]]
  15. final def containsPattern(t: TreePattern): Boolean

    returns

    true if the bit for t is set; false otherwise.

    Definition Classes
    TreePatternBits
    Annotations
    @inline()
  16. def copyTagsFrom(other: BaseType): Unit
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def exists(f: (BaseType) ⇒ Boolean): Boolean

    Test whether there is TreeNode satisfies the conditions specified in f.

    Test whether there is TreeNode satisfies the conditions specified in f. The condition is recursively applied to this node and all of its children (pre-order).

  20. def fastEquals(other: TreeNode[_]): Boolean

    Faster version of equality which short-circuits when two treeNodes are the same instance.

    Faster version of equality which short-circuits when two treeNodes are the same instance. We don't just override Object.equals, as doing so prevents the scala compiler from generating case class equals methods

  21. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def find(f: (BaseType) ⇒ Boolean): Option[BaseType]

    Find the first TreeNode that satisfies the condition specified by f.

    Find the first TreeNode that satisfies the condition specified by f. The condition is recursively applied to this node and all of its children (pre-order).

  23. def flatMap[A](f: (BaseType) ⇒ TraversableOnce[A]): Seq[A]

    Returns a Seq by applying a function to all nodes in this tree and using the elements of the resulting collections.

  24. def foreach(f: (BaseType) ⇒ Unit): Unit

    Runs the given function on this node and then recursively on children.

    Runs the given function on this node and then recursively on children.

    f

    the function to be applied to each node in the tree.

  25. def foreachUp(f: (BaseType) ⇒ Unit): Unit

    Runs the given function recursively on children then on this node.

    Runs the given function recursively on children then on this node.

    f

    the function to be applied to each node in the tree.

  26. def generateTreeString(depth: Int, lastChildren: Seq[Boolean], append: (String) ⇒ Unit, verbose: Boolean, prefix: String = "", addSuffix: Boolean = false, maxFields: Int, printNodeId: Boolean, indent: Int = 0): Unit

    Appends the string representation of this node and its children to the given Writer.

    Appends the string representation of this node and its children to the given Writer.

    The i-th element in lastChildren indicates whether the ancestor of the current node at depth i + 1 is the last child of its own parent node. The depth of the root node is 0, and lastChildren for the root node should be empty.

    Note that this traversal (numbering) order must be the same as getNodeNumbered.

  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def getDefaultTreePatternBits: BitSet

    Default tree pattern for a TreeNode.

    Default tree pattern for a TreeNode.

    Attributes
    protected
  29. def getTagValue[T](tag: TreeNodeTag[T]): Option[T]
  30. def hashCode(): Int
    Definition Classes
    TreeNode → AnyRef → Any
  31. def innerChildren: Seq[TreeNode[_]]

    All the nodes that should be shown as a inner nested tree of this node.

    All the nodes that should be shown as a inner nested tree of this node. For example, this can be used to show sub-queries.

  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def isRuleIneffective(ruleId: RuleId): Boolean

    Whether this TreeNode and its subtree have been marked as ineffective for the rule with id ruleId.

    Whether this TreeNode and its subtree have been marked as ineffective for the rule with id ruleId.

    ruleId

    the unique id of the rule

    returns

    true if the rule has been marked as ineffective; false otherwise. If ruleId is UnknownId, it returns false.

    Attributes
    protected
  34. def jsonFields: List[JField]
    Attributes
    protected
  35. final def legacyWithNewChildren(newChildren: Seq[BaseType]): BaseType

    Returns a copy of this node with the children replaced.

    Returns a copy of this node with the children replaced. TODO: Validate somewhere (in debug mode?) that children are ordered correctly.

    Attributes
    protected
  36. def makeCopy(newArgs: Array[AnyRef]): BaseType

    Creates a copy of this type of tree node after a transformation.

    Creates a copy of this type of tree node after a transformation. Must be overridden by child classes that have constructor arguments that are not present in the productIterator.

    newArgs

    the new product arguments.

  37. def map[A](f: (BaseType) ⇒ A): Seq[A]

    Returns a Seq containing the result of applying the given function to each node in this tree in a preorder traversal.

    Returns a Seq containing the result of applying the given function to each node in this tree in a preorder traversal.

    f

    the function to be applied.

  38. def mapChildren(f: (BaseType) ⇒ BaseType): BaseType

    Returns a copy of this node where f has been applied to all the nodes in children.

  39. def mapProductIterator[B](f: (Any) ⇒ B)(implicit arg0: ClassTag[B]): Array[B]

    Efficient alternative to productIterator.map(f).toArray.

    Efficient alternative to productIterator.map(f).toArray.

    Attributes
    protected
  40. def markRuleAsIneffective(ruleId: RuleId): Unit

    Mark that a rule (with id ruleId) is ineffective for this TreeNode and its subtree.

    Mark that a rule (with id ruleId) is ineffective for this TreeNode and its subtree.

    ruleId

    the unique identifier of the rule. If ruleId is UnknownId, it is a no-op.

    Attributes
    protected
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. def nodeName: String

    Returns the name of this type of TreeNode.

    Returns the name of this type of TreeNode. Defaults to the class name. Note that we remove the "Exec" suffix for physical operators here.

  43. val nodePatterns: Seq[TreePattern]

    returns

    a sequence of tree pattern enums in a TreeNode T. It does not include propagated patterns in the subtree of T.

    Attributes
    protected
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  46. def numberedTreeString: String

    Returns a string representation of the nodes in this tree, where each operator is numbered.

    Returns a string representation of the nodes in this tree, where each operator is numbered. The numbers can be used with TreeNode.apply to easily access specific subtrees.

    The numbers are based on depth-first traversal of the tree (with innerChildren traversed first before children).

  47. val origin: Origin
  48. def otherCopyArgs: Seq[AnyRef]

    Args to the constructor that should be copied, but not transformed.

    Args to the constructor that should be copied, but not transformed. These are appended to the transformed args automatically by makeCopy

    Attributes
    protected
  49. def p(number: Int): BaseType

    Returns the tree node at the specified number, used primarily for interactive debugging.

    Returns the tree node at the specified number, used primarily for interactive debugging. Numbers for each node can be found in the numberedTreeString.

    This is a variant of apply that returns the node as BaseType (if the type matches).

  50. def prettyJson: String
  51. def productIterator: Iterator[Any]
    Definition Classes
    Product
  52. def productPrefix: String
    Definition Classes
    Product
  53. def setTagValue[T](tag: TreeNodeTag[T], value: T): Unit
  54. def simpleString(maxFields: Int): String

    ONE line description of this node.

    ONE line description of this node.

    maxFields

    Maximum number of fields that will be converted to strings. Any elements beyond the limit will be dropped.

  55. def stringArgs: Iterator[Any]

    The arguments that should be included in the arg string.

    The arguments that should be included in the arg string. Defaults to the productIterator.

    Attributes
    protected
  56. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  57. def toJSON: String
  58. def toString(): String
    Definition Classes
    TreeNode → AnyRef → Any
  59. def transform(rule: PartialFunction[BaseType, BaseType]): BaseType

    Returns a copy of this node where rule has been recursively applied to the tree.

    Returns a copy of this node where rule has been recursively applied to the tree. When rule does not apply to a given node it is left unchanged. Users should not expect a specific directionality. If a specific directionality is needed, transformDown or transformUp should be used.

    rule

    the function used to transform this nodes children

  60. def transformDown(rule: PartialFunction[BaseType, BaseType]): BaseType

    Returns a copy of this node where rule has been recursively applied to it and all of its children (pre-order).

    Returns a copy of this node where rule has been recursively applied to it and all of its children (pre-order). When rule does not apply to a given node it is left unchanged.

    rule

    the function used to transform this nodes children

  61. def transformDownWithPruning(cond: (TreePatternBits) ⇒ Boolean, ruleId: RuleId = UnknownRuleId)(rule: PartialFunction[BaseType, BaseType]): BaseType

    Returns a copy of this node where rule has been recursively applied to it and all of its children (pre-order).

    Returns a copy of this node where rule has been recursively applied to it and all of its children (pre-order). When rule does not apply to a given node it is left unchanged.

    cond

    a Lambda expression to prune tree traversals. If cond.apply returns false on a TreeNode T, skips processing T and its subtree; otherwise, processes T and its subtree recursively.

    ruleId

    is a unique Id for rule to prune unnecessary tree traversals. When it is UnknownRuleId, no pruning happens. Otherwise, if rule (with id ruleId) has been marked as in effective on a TreeNode T, skips processing T and its subtree. Do not pass it if the rule is not purely functional and reads a varying initial state for different invocations.

    rule

    the function used to transform this nodes children

  62. def transformUp(rule: PartialFunction[BaseType, BaseType]): BaseType

    Returns a copy of this node where rule has been recursively applied first to all of its children and then itself (post-order).

    Returns a copy of this node where rule has been recursively applied first to all of its children and then itself (post-order). When rule does not apply to a given node, it is left unchanged.

    rule

    the function used to transform this nodes children

  63. def transformUpWithBeforeAndAfterRuleOnChildren(cond: (BaseType) ⇒ Boolean, ruleId: RuleId = UnknownRuleId)(rule: PartialFunction[(BaseType, BaseType), BaseType]): BaseType

    Returns a copy of this node where rule has been recursively applied first to all of its children and then itself (post-order).

    Returns a copy of this node where rule has been recursively applied first to all of its children and then itself (post-order). When rule does not apply to a given node, it is left unchanged.

    cond

    a Lambda expression to prune tree traversals. If cond.apply returns false on a TreeNode T, skips processing T and its subtree; otherwise, processes T and its subtree recursively.

    ruleId

    is a unique Id for rule to prune unnecessary tree traversals. When it is UnknownRuleId, no pruning happens. Otherwise, if rule (with id ruleId) has been marked as in effective on a TreeNode T, skips processing T and its subtree. Do not pass it if the rule is not purely functional and reads a varying initial state for different invocations.

    rule

    the function use to transform this node and its descendant nodes. The function takes a tuple as its input, where the first/second field is the before/after image of applying the rule on the node's children.

  64. def transformUpWithPruning(cond: (TreePatternBits) ⇒ Boolean, ruleId: RuleId = UnknownRuleId)(rule: PartialFunction[BaseType, BaseType]): BaseType

    Returns a copy of this node where rule has been recursively applied first to all of its children and then itself (post-order).

    Returns a copy of this node where rule has been recursively applied first to all of its children and then itself (post-order). When rule does not apply to a given node, it is left unchanged.

    cond

    a Lambda expression to prune tree traversals. If cond.apply returns false on a TreeNode T, skips processing T and its subtree; otherwise, processes T and its subtree recursively.

    ruleId

    is a unique Id for rule to prune unnecessary tree traversals. When it is UnknownRuleId, no pruning happens. Otherwise, if rule (with id ruleId) has been marked as in effective on a TreeNode T, skips processing T and its subtree. Do not pass it if the rule is not purely functional and reads a varying initial state for different invocations.

    rule

    the function used to transform this nodes children

  65. def transformWithPruning(cond: (TreePatternBits) ⇒ Boolean, ruleId: RuleId = UnknownRuleId)(rule: PartialFunction[BaseType, BaseType]): BaseType

    Returns a copy of this node where rule has been recursively applied to the tree.

    Returns a copy of this node where rule has been recursively applied to the tree. When rule does not apply to a given node it is left unchanged. Users should not expect a specific directionality. If a specific directionality is needed, transformDown or transformUp should be used.

    cond

    a Lambda expression to prune tree traversals. If cond.apply returns false on a TreeNode T, skips processing T and its subtree; otherwise, processes T and its subtree recursively.

    ruleId

    is a unique Id for rule to prune unnecessary tree traversals. When it is UnknownRuleId, no pruning happens. Otherwise, if rule (with id ruleId) has been marked as in effective on a TreeNode T, skips processing T and its subtree. Do not pass it if the rule is not purely functional and reads a varying initial state for different invocations.

    rule

    the function used to transform this nodes children

  66. lazy val treePatternBits: BitSet

    A BitSet of tree patterns for this TreeNode and its subtree.

    A BitSet of tree patterns for this TreeNode and its subtree. If this TreeNode and its subtree contains a pattern P, the corresponding bit for P.id is set in this BitSet.

    Definition Classes
    TreeNodeTreePatternBits
  67. def treeString(append: (String) ⇒ Unit, verbose: Boolean, addSuffix: Boolean, maxFields: Int, printOperatorId: Boolean): Unit
  68. final def treeString(verbose: Boolean, addSuffix: Boolean = false, maxFields: Int = SQLConf.get.maxToStringFields, printOperatorId: Boolean = false): String
  69. final def treeString: String

    Returns a string representation of the nodes in this tree

  70. def unsetTagValue[T](tag: TreeNodeTag[T]): Unit
  71. def verboseStringWithSuffix(maxFields: Int): String

    ONE line description of this node with some suffix information

  72. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  75. final def withNewChildren(newChildren: Seq[BaseType]): BaseType

Inherited from TreePatternBits

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped