Packages

package sql

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class Alias(query: Query, name: String) extends Query with Product with Serializable

    A Name alias.

  2. case class AnonymousInput(inputType: TabularData, slot: Int = 0) extends Query with Product with Serializable

    Anonymous input (e.g.

    Anonymous input (e.g. plain select on given TabularType)

    inputType

    type of input

    slot

    the anonymous slot (for multiple inputs)

  3. case class ArrayGetExpression(array: Expression, index: Expression) extends BinaryExpression with Product with Serializable

    Returns array value.

  4. sealed trait BinaryExpression extends Expression

    An expression built from two expressions

  5. case class BinaryOperationExpression(op: BinaryOperation, left: Expression, right: Expression) extends BinaryExpression with Product with Serializable

    A Simple binary expression which works on the same type.

  6. case class CastExpression(expression: Expression, dataType: DataType) extends UnaryExpression with Product with Serializable

    An expression is casted.

  7. case class ColumnExpression(columnId: Int, dataType: DataType) extends LeafExpression with Product with Serializable

    A Column is selected.

  8. sealed trait Condition extends Expression

    A Condition is a special expression which emits a boolean value.

  9. case class ConstantExpression(value: SingleElementBundle) extends LeafExpression with Product with Serializable

    A Constant Expression.

  10. sealed trait Expression extends AnyRef

    An expression (e.g.

    An expression (e.g. Inside Select).

  11. case class Join(left: Query, right: Query, joinType: JoinType, condition: JoinCondition) extends Query with Product with Serializable

    A Join Query

    A Join Query

    left

    left query

    right

    right query

    joinType

    kind of join

    condition

    condition Join Condition

  12. sealed trait JoinCondition extends AnyRef

    Join Conditions.

  13. sealed abstract class JoinType extends AnyRef

    Different Jon Types.

  14. sealed trait LeafExpression extends Expression

    An expression which is not build from other expressions

  15. sealed trait MultiQuery extends AnyRef

    Combines multiples queries (returning multiple tabular data streams)

  16. sealed trait Query extends AnyRef

    Base trait for a Query.

  17. case class QueryColumn(name: String, alias: Option[String], dataType: DataType) extends Product with Serializable

    A Single column inside a query.

  18. case class QueryTabularType(columns: Vector[QueryColumn]) extends Product with Serializable

    Resulting type of a query.

    Resulting type of a query. Similar to ai.mantik.ds.TabularData but with support for alias and duplicates

  19. case class Select(input: Query, projections: Option[Vector[SelectProjection]] = None, selection: Vector[Condition] = Vector.empty) extends Query with Product with Serializable

    A Select selects elements from a stream of tabular rows.

    A Select selects elements from a stream of tabular rows. (Like in SQL Selects), transforms and filters them

    Mantik only supports a subset of SQL Selects yet, however it's a design goal that improvements should be solved similar to SQL if applicable.

    projections

    the columns which are returned, if None all are returned.

    selection

    AND-concatenated filters

  20. case class SelectProjection(columnName: String, expression: Expression) extends Product with Serializable

    A Single Column in a select statement.

  21. case class SingleQuery(query: Query) extends MultiQuery with Product with Serializable

    A Single Query as MultiQuery.

  22. case class SizeExpression(expression: Expression) extends UnaryExpression with Product with Serializable

    Returns array length.

  23. case class Split(query: Query, fractions: Vector[Double], shuffleSeed: Option[Long] = None) extends MultiQuery with Product with Serializable

    A Split operation.

    A Split operation.

    query

    input data

    fractions

    the splitting fractions [0.0 .. 1.0], remaining data will form the last table. resulting data will consist of N + 1 tables.

    shuffleSeed

    if given, shuffle data with the given seed

  24. case class SqlContext(anonymous: Vector[TabularData] = Vector.empty) extends Product with Serializable

    Context for translating SQL Expressions

    Context for translating SQL Expressions

    anonymous

    anonymous sources

  25. case class StructAccessExpression(expression: Expression, name: String) extends UnaryExpression with Product with Serializable

    Gives access to a structural field

  26. sealed trait UnaryExpression extends Expression

    An expression built from one expression.

  27. case class Union(left: Query, right: Query, all: Boolean) extends Query with Product with Serializable

    An UNION.

Value Members

  1. object AutoSelect

    Helpers for creating automatic Select-Operations for converting DataTypes.

  2. object AutoUnion

    Helpers for creating automatic union operations with data type compatibility

  3. object Condition
  4. object ConstantExpression extends Serializable
  5. object Join extends Serializable
  6. object JoinCondition
  7. object JoinType
  8. object MultiQuery
  9. object Query
  10. object QueryColumn extends Serializable
  11. object QueryTabularType extends Serializable
  12. object Select extends Serializable
  13. object SqlFormatter

    Formats Queries as SQL again.

Ungrouped