package element
- Alphabetic
- Public
- All
Type Members
-
case class
ArrayElement(elements: IndexedSeq[Element]) extends Element with Product with Serializable
Element of ai.mantik.ds.ArrayT
-
sealed
trait
Bundle extends AnyRef
An in-memory data bundle
An in-memory data bundle
This is either a TabularBundle or a SingleElementBundle.
-
case class
ColumnWiseBundleBuilder(columnsRev: List[(String, DataType, IndexedSeq[Element])] = Nil) extends Product with Serializable
A Builder for ai.mantik.ds.element.TabularBundle which builds column wise.
-
sealed
trait
Element extends AnyRef
Base trait for all encoded main elements.
-
case class
ElementWrapper(element: Element) extends Product with Serializable
Helper structure which allows automatic conversion of primitives into Elements
-
case class
EmbeddedTabularElement(rows: IndexedSeq[TabularRow]) extends Element with Product with Serializable
Embedded tabular (hypothetical).
-
case class
ImageElement(bytes: ByteString) extends Element with Product with Serializable
Single serialized image (big endian, flat)
-
sealed
trait
NullableElement extends Element
A Nullable Element (either present or not).
-
case class
Primitive[X](x: X) extends Element with Product with Serializable
A Single Primitive Element, must be the matching Java Type Note: unsigned are handled using their signed counterparts.
A Single Primitive Element, must be the matching Java Type Note: unsigned are handled using their signed counterparts. TODO: Discuss if this is ok.
-
trait
PrimitiveEncoder[T <: FundamentalType] extends AnyRef
Type class which wraps fundamental types into Primitive instances.
Type class which wraps fundamental types into Primitive instances. The purpose is to have a consistent mapping and to hide all these type erasure beyond a layer of type class magic.
-
sealed
trait
RootElement extends AnyRef
Base trait for main-transportation elements, can contain either SingleElement or TabularRow.
-
case class
SingleElement(element: Element) extends RootElement with Product with Serializable
A Single element, for non-tabular data.
-
case class
SingleElementBundle(model: DataType, element: Element) extends Bundle with Product with Serializable
A Bundle which contains a single element.
- case class SomeElement(x: Element) extends NullableElement with Product with Serializable
-
case class
StructElement(elements: IndexedSeq[Element]) extends Element with Product with Serializable
Named tuple element.
-
class
TabularBuilder extends AnyRef
Builder for tabular data
-
case class
TabularBundle(model: TabularData, rows: Vector[TabularRow]) extends Bundle with Product with Serializable
A Bundle which contains tabular data.
-
case class
TabularRow(columns: IndexedSeq[Element]) extends RootElement with Product with Serializable
A tabular row, a root element.
-
case class
TensorElement[X](elements: IndexedSeq[X]) extends Element with Product with Serializable
Single serialized tensor element.
Single serialized tensor element. Serializing works from doing inner elements first, e.g.
Shape = [4,2] [[0,1], [2,3], [4,5], [6,7]]
- elements
inner elements. TODO: IndexedSeq is not specialized, so not memory efficient, see Ticket #44
-
trait
ValueEncoder[T] extends AnyRef
Value encoder provides implicit conversion from Scala Types into Mantik Types and can be used to construct primitives
Value Members
- object ArrayElement extends Serializable
- object Bundle
- object ElementOrdering
- object ElementWrapper extends Serializable
- object EmbeddedTabularElement extends Serializable
- object NullElement extends NullableElement with Product with Serializable
- object Primitive extends Serializable
- object PrimitiveEncoder
- object SingleElementBundle extends Serializable
- object SomeElement extends Serializable
- object StructElement extends Serializable
- object TabularBundle extends Serializable
- object TabularRow extends Serializable
- object ValueEncoder