object NestedColumnAliasing
This aims to handle a nested column aliasing pattern inside the ColumnPruning optimizer rule.
If a project or its child references to nested fields, and not all the fields
in a nested attribute are used, we can substitute them by alias attributes; then a project
of the nested fields as aliases on the children of the child will be created.
- Alphabetic
- By Inheritance
- NestedColumnAliasing
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canPruneGenerator(g: Generator): Boolean
This is a while-list for pruning nested fields at
Generator. -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAliasSubMap(exprList: Seq[Expression], exclusiveAttrs: Seq[Attribute] = Seq.empty): Option[(Map[ExtractValue, Alias], Map[ExprId, Seq[Alias]])]
Return two maps in order to replace nested fields to aliases.
Return two maps in order to replace nested fields to aliases.
If
exclusiveAttrsis given, any nested field accessors of these attributes won't be considered in nested fields aliasing.1. ExtractValue -> Alias: A new alias is created for each nested field. 2. ExprId -> Seq[Alias]: A reference attribute has multiple aliases pointing it.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getNewProjectList(projectList: Seq[NamedExpression], nestedFieldToAlias: Map[ExtractValue, Alias]): Seq[NamedExpression]
Return a replaced project list.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
replaceChildrenWithAliases(plan: LogicalPlan, attrToAliases: Map[ExprId, Seq[Alias]]): LogicalPlan
Return a plan with new children replaced with aliases.
-
def
replaceToAliases(plan: LogicalPlan, nestedFieldToAlias: Map[ExtractValue, Alias], attrToAliases: Map[ExprId, Seq[Alias]]): LogicalPlan
Replace nested columns to prune unused nested columns later.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def unapply(plan: LogicalPlan): Option[(Map[ExtractValue, Alias], Map[ExprId, Seq[Alias]])]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()