Note that with tuples, heterogeneous types are supported, due to the tuple type being a kind of heterogeneous
collection.
Internally, the data emitted by a Dataset will be de-duplicated to prevent redundant computation.
This trait guarantees that the output data types and shapes of a Dataset will match the structure of the
corresponding data. For example, if a Seq(List(data1), List(data1, data2)) is provided as a Dataset element
type, then the dataset output data types will have the following structure Seq(List(type1), List(type1, type2)),
and similarly for the output shapes.
Data can be emitted by Datasets (i.e., the element types of all Datasets are Data).
Currently supported data types are:
s,
Lists, etc.).
Seq(data1, Seq(data1, data2))
).Seq(List(data1), List(data1, data2))
is supported,Seq(Seq(data1), List(data1, data2))
is not.This trait guarantees that the output data types and shapes of a Dataset will match the structure of the corresponding data. For example, if a
Seq(List(data1), List(data1, data2))
is provided as a Dataset element type, then the dataset output data types will have the following structureSeq(List(type1), List(type1, type2))
, and similarly for the output shapes.