object SchemaPruning
- Alphabetic
- By Inheritance
- SchemaPruning
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
RootField(field: StructField, derivedFromAtt: Boolean, prunedIfAnyChildAccessed: Boolean = false) extends Product with Serializable
This represents a "root" schema field (aka top-level, no-parent).
This represents a "root" schema field (aka top-level, no-parent).
fieldis theStructFieldfor field name and datatype.derivedFromAttindicates whether it was derived from an attribute or had a proper child.prunedIfAnyChildAccessedmeans whether this root field can be pruned if any of child field is used in the query.
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
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] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
identifyRootFields(projects: Seq[NamedExpression], filters: Seq[Expression]): Seq[RootField]
Returns the set of fields from projection and filtering predicates that the query plan needs.
-
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
pruneDataSchema(dataSchema: StructType, requestedRootFields: Seq[RootField]): StructType
Filters the schema by the requested fields.
Filters the schema by the requested fields. For example, if the schema is struct<a:int, b:int>, and given requested field are "a", the field "b" is pruned in the returned schema. Note that schema field ordering at original schema is still preserved in pruned schema.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()