Class

tech.sourced.gitbase.spark

Query

Related Doc: package spark

Permalink

case class Query(project: Seq[Expression] = Seq(), filters: Seq[Expression] = Seq(), subquery: Option[Query] = None, source: Option[Node] = None, sort: Seq[SortOrder] = Seq(), grouping: Seq[Expression] = Seq(), limit: Option[Long] = None) extends Product with Serializable

Query holds all the data needed to build a query.

project

Projected columns

filters

Filters

source

Source of the query (table or join between tables)

sort

Sorting by fields

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Query
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Query(project: Seq[Expression] = Seq(), filters: Seq[Expression] = Seq(), subquery: Option[Query] = None, source: Option[Node] = None, sort: Seq[SortOrder] = Seq(), grouping: Seq[Expression] = Seq(), limit: Option[Long] = None)

    Permalink

    project

    Projected columns

    filters

    Filters

    source

    Source of the query (table or join between tables)

    sort

    Sorting by fields

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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. val filters: Seq[Expression]

    Permalink

    Filters

  8. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. val grouping: Seq[Expression]

    Permalink
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val limit: Option[Long]

    Permalink
  13. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  16. val project: Seq[Expression]

    Permalink

    Projected columns

  17. val sort: Seq[SortOrder]

    Permalink

    Sorting by fields

  18. val source: Option[Node]

    Permalink

    Source of the query (table or join between tables)

  19. val subquery: Option[Query]

    Permalink
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def withFilters(filters: Seq[Expression]): Query

    Permalink

    Creates a new query adding the given filters to those already present in the query.

    Creates a new query adding the given filters to those already present in the query.

    filters

    Given filters

    returns

    new query

  25. def withGroupBy(project: Seq[Expression], grouping: Seq[Expression]): Query

    Permalink

    Creates a new query replacing the grouping columns and the projection with the given ones.

    Creates a new query replacing the grouping columns and the projection with the given ones. If there is already a projection, it will wrap the current query, making it a subquery.

    project

    projection columns

    grouping

    columns

    returns

    new query

  26. def withLimit(limit: Long): Query

    Permalink
  27. def withProject(project: Seq[Expression]): Query

    Permalink

    Creates a new query replacing the projected columns with the given ones.

    Creates a new query replacing the projected columns with the given ones. If there is already a projection, it will be treated as a subquery.

    project

    given projected columns

    returns

    new query

  28. def withSort(sort: Seq[SortOrder]): Query

    Permalink

    Creates a new query replacing the sort fields with the given ones.

    Creates a new query replacing the sort fields with the given ones.

    sort

    sort fields given

    returns

    new query

  29. def withSource(source: Node): Query

    Permalink

    Creates a new query replacing the source with the given one.

    Creates a new query replacing the source with the given one.

    source

    source given

    returns

    new query

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped