Packages

case class DataSet(core: MantikItemCore[DataSetDefinition]) extends BridgedMantikItem with Product with Serializable

Represents a DataSet.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DataSet
  2. Serializable
  3. Product
  4. Equals
  5. BridgedMantikItem
  6. MantikItem
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DataSet(core: MantikItemCore[DataSetDefinition])

Type Members

  1. type DefinitionType = DataSetDefinition
    Definition Classes
    DataSetBridgedMantikItemMantikItem
  2. type OwnType = DataSet
    Definition Classes
    DataSetMantikItem

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def autoAdaptOrFail(targetType: DataType): DataSet

    Tries to auto convert this data set to another data type.

    Tries to auto convert this data set to another data type. Conversions can only be done if they do not loose precision or cannot fail single rows.

    Annotations
    @throws("If the conversion can not be applied.")
  6. def autoUnion(other: DataSet, all: Boolean): DataSet

    Auto UNION this and another data set

    Auto UNION this and another data set

    other

    the other dataset

    all

    if true generate UNION ALL, otherwise duplicates are omitted.

  7. def bridge: Bridge

    Returns the item bridge.

    Returns the item bridge.

    Definition Classes
    BridgedMantikItem
  8. def bridgeMantikId: MantikId

    Returns the type's bridge.

    Returns the type's bridge.

    Definition Classes
    BridgedMantikItem
  9. def cached: DataSet

    Returns a dataset, which will be cached.

    Returns a dataset, which will be cached. Note: caching is done lazy.

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. val core: MantikItemCore[DataSetDefinition]
    Definition Classes
    DataSetMantikItem
  12. def dataType: DataType
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def fetch: FetchAction
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def isCached: Boolean

    Return true if the item is requested for caching (This doesn't have to mean that the cache is evaluated)

    Return true if the item is requested for caching (This doesn't have to mean that the cache is evaluated)

    Definition Classes
    MantikItem
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def itemId: ItemId

    Returns the ai.mantik.elements.ItemId of the item.

    Returns the ai.mantik.elements.ItemId of the item.

    Definition Classes
    MantikItem
  19. def join(other: DataSet, columns: Seq[String], joinType: JoinType): DataSet

    Performs join with other dataset.

  20. def join(other: DataSet, columns: Seq[String]): DataSet

    Performs inner join with other dataset

  21. def mantikId: MantikId

    Returns the mantik id.

    Returns the mantik id. (Note: if it was stored after generating, it may not reflect the name)

    Definition Classes
    MantikItem
  22. def mapRows(destinationType: TabularData)(rowMapper: RowMapper): DataSet

    Maps rows into a new structure using the ScalaFn-Bridge.

    Maps rows into a new structure using the ScalaFn-Bridge.

    Note: this method is very low level, type errors are not detected.

    Annotations
    @throws("If the input data is not tabular")
  23. def mapRowsFn[I, O](udf: UserDefinedFunction[I, O]): DataSet

    Map rows into a new structure using the ScalaFn-Bridge.

    Map rows into a new structure using the ScalaFn-Bridge.

    The structure of the mapping function is automatically detected. The resulting columns will be named like _1, _2, etc.

    Annotations
    @throws("If the data types can't be applied") @throws("If the input data is not tabular")
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. def push(): PushAction

    Pushes an item to the registry.

    Pushes an item to the registry.

    Definition Classes
    MantikItem
  29. def save(): SaveAction

    Save an item back in the local database

    Save an item back in the local database

    Definition Classes
    MantikItem
  30. def select(select: Select): DataSet

    Derives a data set, as the result of applying a select to this dataset.

  31. def select(statement: String): DataSet

    Prepares a select statement on this dataset.

    Prepares a select statement on this dataset.

    Annotations
    @throws("if a select is applied on non tabular data or if the select could not be compiled.") @throws("On illegal selects")
  32. def split(fractions: Seq[Double], shuffleSeed: Option[Long] = None, cached: Boolean = true): Seq[DataSet]

    Split the DataSet into multiple fractions.

    Split the DataSet into multiple fractions.

    fractions

    the relative size of each fraction

    shuffleSeed

    if given, shuffle the dataset before extracting fractions using this Random seed

    cached

    if true, cache sub results to avoid recalculation

    returns

    fractions.length + 1 DataSets

  33. def state(implicit planningContext: PlanningContext): MantikItemState

    Returns the state of the item.

    Returns the state of the item.

    Definition Classes
    MantikItem
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def tag(name: NamedMantikId): OwnType

    Tag the item, giving it an additional name.

    Tag the item, giving it an additional name.

    Note: this will only have an effect, if the Item is saved or pushed.

    returns

    the tagged item.

    Definition Classes
    MantikItem
  36. def toString(): String
    Definition Classes
    MantikItem → AnyRef → Any
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. def withCore(core: MantikItemCore[DataSetDefinition]): DataSet

    Override the current source type.

    Override the current source type.

    Attributes
    protected
    Definition Classes
    DataSetMantikItem
  41. def withMantikHeader(mantikHeader: MantikHeader[DefinitionType]): OwnType

    Override the mantik header (not this can be dangerous).

    Override the mantik header (not this can be dangerous).

    Attributes
    protected
    Definition Classes
    MantikItem
  42. def withMetaValue[T](name: String, value: T)(implicit arg0: ValueEncoder[T]): OwnType

    Convenience function to udpate a single meta value.

    Convenience function to udpate a single meta value. Types are matched automatically if possible

    Definition Classes
    MantikItem
    Annotations
    @throws("If a value is missing or of wrong type or not changeable.")
  43. def withMetaValues(values: (String, SingleElementBundle)*): OwnType

    Update Meta Variables.

    Update Meta Variables.

    Definition Classes
    MantikItem
    Annotations
    @throws("If a value is missing or of wrong type or not changeable.")

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BridgedMantikItem

Inherited from MantikItem

Inherited from AnyRef

Inherited from Any

Ungrouped