Class

mimir.algebra

Operator

Related Doc: package algebra

Permalink

sealed abstract class Operator extends Serializable with OperatorConstructors

Abstract parent class of all relational algebra operators

Linear Supertypes
OperatorConstructors, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Operator
  2. OperatorConstructors
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def children: Seq[Operator]

    Permalink

    Return all of the child nodes of this operator

  2. abstract def columnNames: Seq[String]

    Permalink

    Get the names of the columns produced by this operator.

    Get the names of the columns produced by this operator. If you need the types of the columns, use db.typechecker

  3. abstract def expressions: Seq[Expression]

    Permalink

    Return all expression objects that appear in this node

  4. abstract def rebuild(c: Seq[Operator]): Operator

    Permalink

    Return a new instance of the same object, but with the children replaced with the provided list.

    Return a new instance of the same object, but with the children replaced with the provided list. The list must be of the same size returned by children. This is mostly to facilitate recur, below

  5. abstract def rebuildExpressions(x: Seq[Expression]): Operator

    Permalink

    Replace all of the expressions in this operator.

    Replace all of the expressions in this operator. Like rebuild, this method expects expressions to arrive in the same order as they're returned by the expressions method

  6. abstract def toString(prefix: String): String

    Permalink

    Convert the operator into a string.

    Convert the operator into a string. Because operators are nested recursively, and can span multiple lines, Every line of output should be prefixed with the specified string.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addColumn(newCols: (String, Expression)*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  5. def aggregate(agg: AggFunction*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  6. def aggregateParsed(agg: (String, String)*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def count(distinct: Boolean = false, alias: String = "COUNT"): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  10. def distinct: Operator

    Permalink
    Definition Classes
    OperatorConstructors
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def filter(condition: Expression): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  14. def filterParsed(condition: String): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def groupBy(gb: Var*)(agg: AggFunction*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  18. def groupByParsed(gb: String*)(agg: (String, String)*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def join(other: Operator, on: Expression = BoolPrimitive(true)): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  22. def limit(count: Int = 1, offset: Int = 0): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  23. def map(cols: (String, Expression)*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  24. def mapImpl(cols: Seq[(String, Expression)], noInline: Boolean = false): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  25. def mapNoInline(cols: (String, Expression)*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  26. def mapParsed(cols: (String, String)*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  27. def mapParsedNoInline(cols: (String, String)*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. def project(cols: String*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  32. def projectNoInline(cols: String*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  33. def recur(f: (Operator) ⇒ Operator): Operator

    Permalink

    Perform a recursive rewrite.

    Perform a recursive rewrite. The following pattern is pretty common throughout Mimir: def replaceFooWithBar(e:Expression): Expression = e match { case Foo(a, b, c, ...) => Bar(a, b, c, ...) case _ => e.recur(replaceFooWithBar(_)) } Note how specific rewrites are applied to specific patterns in the tree, and recur is used to ignore/descend through every other class of object

  34. def recurExpressions(op: (Expression) ⇒ Expression): Operator

    Permalink

    Apply a method to recursively rewrite all of the Expressions in this object.

  35. def removeColumn(targets: String*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  36. def removeColumns(targets: String*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  37. def rename(targets: (String, String)*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  38. def sort(sortCols: (String, Boolean)*): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toOperator: Operator

    Permalink

    Return Self.

    Return Self.

    This mainly exists in support of OperatorConstructors

    Definition Classes
    OperatorOperatorConstructors
  41. def toString(): String

    Permalink

    The starting point for stringification is to have no indentation

    The starting point for stringification is to have no indentation

    Definition Classes
    Operator → AnyRef → Any
  42. def union(other: Operator): Operator

    Permalink
    Definition Classes
    OperatorConstructors
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from OperatorConstructors

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped