final case class LeftShift[T[_[_]], A](src: A, struct: FreeMap[T], idStatus: IdStatus, shiftType: ShiftType, onUndefined: OnUndefined, repair: JoinFunc[T]) extends QScriptCore[T, A] with Product with Serializable
Flattens nested structure, converting each value into a data set, which are then unioned.
struct is an expression that evaluates to an array or object, which is
then “exploded” into multiple values. idStatus indicates what each of
those exploded values should look like (either just the value, just the “id”
(i.e., the key or index), or a 2-element array of key and value). repair
is applied across the new set, integrating the exploded values into the
original set.
onUndefined specifies how evaluation should proceeed when struct
evaluates to Undefined. When Emit then the repair expression
must be invoked once with RightSide set to Undefined,
when Omit then the repair must not be invoked.
E.g., in:
LeftShift(x,
ProjectKey(SrcHole, "bar"),
ExcludeId,
ConcatMaps(LeftSide, MakeMap("bar", RightSide))){ foo: 7, bar: [1, 2, 3] } consists of things that look like
If x, then
that’s what LeftSide is. And RightSide is values like 1, 2, and
{ bar: 1 }3, because that’s what you get from flattening the struct.So then our
right-biased quasar.qscript.MapFuncsCore.ConcatMaps says to concat
{ foo: 7, bar: [1, 2, 3] } with , resulting in
{ foo: 7, bar: 2 }{ foo: 7, bar: 1 } (then again with and
x{ foo: 7, bar: 3 }, finishing up the handling of that one element in the
original () dataset.
- Alphabetic
- By Inheritance
- LeftShift
- QScriptCore
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val idStatus: IdStatus
-
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()
- val onUndefined: OnUndefined
- val repair: JoinFunc[T]
- val shiftType: ShiftType
- val src: A
- val struct: FreeMap[T]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
- @native() @throws( ... )