Class/Object

spinoco.fs2.cassandra.builder

QueryBuilder

Related Docs: object QueryBuilder | package builder

Permalink

case class QueryBuilder[R <: HList, PK <: HList, CK <: HList, IDX <: HList, Q <: HList, S <: HList, M](table: AbstractTable[R, PK, CK, IDX], queryColumns: Seq[(String, String)], whereConditions: Seq[String], orderColumns: Seq[(String, Boolean)], clusterColumns: Map[Comparison.Value, Seq[(String, String)]], limitCount: Option[Int], allowFilteringFlag: Boolean) extends Product with Serializable

Self Type
QueryBuilder[R, PK, CK, IDX, Q, S, M]
Source
QueryBuilder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QueryBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by TableQueryBuilderSyntax
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QueryBuilder(table: AbstractTable[R, PK, CK, IDX], queryColumns: Seq[(String, String)], whereConditions: Seq[String], orderColumns: Seq[(String, Boolean)], clusterColumns: Map[Comparison.Value, Seq[(String, String)]], limitCount: Option[Int], allowFilteringFlag: Boolean)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from QueryBuilder[R, PK, CK, IDX, Q, S, M] to any2stringadd[QueryBuilder[R, PK, CK, IDX, Q, S, M]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (QueryBuilder[R, PK, CK, IDX, Q, S, M], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from QueryBuilder[R, PK, CK, IDX, Q, S, M] to ArrowAssoc[QueryBuilder[R, PK, CK, IDX, Q, S, M]] performed by method ArrowAssoc in scala.Predef. This conversion will take place only if M is Materializable (M =:= Materializable).
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def all: QueryBuilder[R, PK, CK, IDX, Q, R, M]

    Permalink

    mark this query to contain all columns in the table as result *

  7. def allowFiltering: QueryBuilder[R, PK, CK, IDX, Q, S, M]

    Permalink

    sets flag to indicate the query may support ALLOW FILTERING *

  8. val allowFilteringFlag: Boolean

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def build(implicit CTQ: CTypeRecordInstance[Q], CTS: CTypeNonEmptyRecordInstance[S]): Query[Q, S]

    Permalink

    creates query, that may be used to perform CQL commands on connection *

  11. def byIndex[K, K0, V](column: Aux[K], as: Aux[K0], op: Comparison.Value)(implicit ev0: Aux[IDX, K, V], P: Prepend[Q, ::[FieldType[K0, V], HNil]]): QueryBuilder[R, PK, CK, IDX, Out, S, M]

    Permalink

    Like byIndex but allows to specify alias that will be used in input query

  12. def byIndex[K, V](column: Aux[K], op: Comparison.Value)(implicit ev0: Aux[IDX, K, V], P: Prepend[Q, ::[FieldType[K, V], HNil]]): QueryBuilder[R, PK, CK, IDX, Out, S, M]

    Permalink

    Returns only rows for which indexed field satisfies the op

  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def cluster[K, K0, V](column: Aux[K], as: Aux[K0], op: Comparison.Value)(implicit ev0: Aux[CK, K, V], P: Prepend[Q, ::[FieldType[K0, V], HNil]]): QueryBuilder[R, PK, CK, IDX, Out, S, M]

    Permalink

    Like cluster but allows to specify alias that will be used in input query

  15. def cluster[K, V](column: Aux[K], op: Comparison.Value)(implicit ev0: Aux[CK, K, V], P: Prepend[Q, ::[FieldType[K, V], HNil]]): QueryBuilder[R, PK, CK, IDX, Out, S, M]

    Permalink

    Returns only rows, where given cluster matches comparison specified Note that if multiple cluster key columns constrains exists this will get converted to slice on cluster columns.

  16. val clusterColumns: Map[Comparison.Value, Seq[(String, String)]]

    Permalink
  17. def column[K, V](name: Aux[K])(implicit ev0: Aux[R, K, V]): QueryBuilder[R, PK, CK, IDX, Q, ::[FieldType[K, V], S], M]

    Permalink

    selects given column *

  18. def columnAs[K, V, K0](name: Aux[K], as: Aux[K0])(implicit ev0: Aux[R, K, V]): QueryBuilder[R, PK, CK, IDX, Q, ::[FieldType[K0, V], S], M]

    Permalink

    select given column and alias it with as *

  19. def columns[C <: HList](implicit CA: ColumnsKeys[C], sel: SelectAll[R, C], PP: Prepend[C, S]): QueryBuilder[R, PK, CK, IDX, Q, Out, M]

    Permalink

    selects all columms in a given list *

  20. def ensuring(cond: (QueryBuilder[R, PK, CK, IDX, Q, S, M]) ⇒ Boolean, msg: ⇒ Any): QueryBuilder[R, PK, CK, IDX, Q, S, M]

    Permalink
    Implicit information
    This member is added by an implicit conversion from QueryBuilder[R, PK, CK, IDX, Q, S, M] to Ensuring[QueryBuilder[R, PK, CK, IDX, Q, S, M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: (QueryBuilder[R, PK, CK, IDX, Q, S, M]) ⇒ Boolean): QueryBuilder[R, PK, CK, IDX, Q, S, M]

    Permalink
    Implicit information
    This member is added by an implicit conversion from QueryBuilder[R, PK, CK, IDX, Q, S, M] to Ensuring[QueryBuilder[R, PK, CK, IDX, Q, S, M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean, msg: ⇒ Any): QueryBuilder[R, PK, CK, IDX, Q, S, M]

    Permalink
    Implicit information
    This member is added by an implicit conversion from QueryBuilder[R, PK, CK, IDX, Q, S, M] to Ensuring[QueryBuilder[R, PK, CK, IDX, Q, S, M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean): QueryBuilder[R, PK, CK, IDX, Q, S, M]

    Permalink
    Implicit information
    This member is added by an implicit conversion from QueryBuilder[R, PK, CK, IDX, Q, S, M] to Ensuring[QueryBuilder[R, PK, CK, IDX, Q, S, M]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from QueryBuilder[R, PK, CK, IDX, Q, S, M] to StringFormat[QueryBuilder[R, PK, CK, IDX, Q, S, M]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  27. def function[K, V](fn: CQLFunction0[V], as: Aux[K]): QueryBuilder[R, PK, CK, IDX, Q, ::[FieldType[K, V], S], M]

    Permalink

    select function from the table that does not take a parameter *

  28. def functionAt[K, V, K0, V0](fn: CQLFunction[V, V0], name: Aux[K], as: Aux[K0])(implicit ev0: Aux[R, K, V]): QueryBuilder[R, PK, CK, IDX, Q, ::[FieldType[K0, V0], S], M]

    Permalink

    select function fn applied at column name with alias as *

  29. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  31. def limit(max: Int): QueryBuilder[R, PK, CK, IDX, Q, S, M]

    Permalink

    Allows to pass limit of records that has to be returned

  32. val limitCount: Option[Int]

    Permalink
  33. def materialize: MaterializedViewBuilder[R, PK, CK, S, HNil, HNil]

    Permalink

    starts creating a materialized view out of this query *

    starts creating a materialized view out of this query *

    Implicit information
    This member is added by an implicit conversion from QueryBuilder[R, PK, CK, IDX, Q, S, M] to TableQueryBuilderSyntax[R, PK, CK, IDX, Q, S] performed by method TableQueryBuilderSyntax in spinoco.fs2.cassandra.builder.QueryBuilder.
    This conversion will take place only if all of the following constraints are met:
    1. R is a subclass of HList (R <: HList)
    2. PK is a subclass of HList (PK <: HList)
    3. CK is a subclass of HList (CK <: HList)
    4. IDX is a subclass of HList (IDX <: HList)
    5. Q is a subclass of HList (Q <: HList)
    6. S is a subclass of HList (S <: HList)
    7. M is Materializable (M =:= Materializable)
    Definition Classes
    TableQueryBuilderSyntax
  34. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  37. def orderBy[K, V](name: Aux[K], ascending: Boolean)(implicit ev0: Aux[CK, K, V]): QueryBuilder[R, PK, CK, IDX, Q, S, M]

    Permalink

    allows to order the results baseon on given cluster column *

  38. val orderColumns: Seq[(String, Boolean)]

    Permalink
  39. def partition[PKK <: HList](implicit PKK: Aux[PK, PKK], ev0: Aux[PKK, List, AnyRef]): QueryBuilder[R, PK, CK, IDX, PK, S, M]

    Permalink

    Returns only rows, where primary key matches specified value

  40. def primary[PKL <: HList, PKK <: HList](implicit P: shapeless.ops.hlist.Prepend.Aux[PK, CK, PKL], PKK: Aux[PKL, PKK], ev0: Aux[PKK, List, AnyRef]): QueryBuilder[R, PK, CK, IDX, PKL, S, M]

    Permalink

    allows to build query based on primary key (partition and all cluster keys) *

  41. val queryColumns: Seq[(String, String)]

    Permalink
  42. val self: QueryBuilder[R, PK, CK, IDX, Q, S, Materializable]

    Permalink
    Implicit information
    This member is added by an implicit conversion from QueryBuilder[R, PK, CK, IDX, Q, S, M] to TableQueryBuilderSyntax[R, PK, CK, IDX, Q, S] performed by method TableQueryBuilderSyntax in spinoco.fs2.cassandra.builder.QueryBuilder.
    This conversion will take place only if all of the following constraints are met:
    1. R is a subclass of HList (R <: HList)
    2. PK is a subclass of HList (PK <: HList)
    3. CK is a subclass of HList (CK <: HList)
    4. IDX is a subclass of HList (IDX <: HList)
    5. Q is a subclass of HList (Q <: HList)
    6. S is a subclass of HList (S <: HList)
    7. M is Materializable (M =:= Materializable)
    Definition Classes
    TableQueryBuilderSyntax
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. val table: AbstractTable[R, PK, CK, IDX]

    Permalink
  45. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. val whereConditions: Seq[String]

    Permalink
  49. def [B](y: B): (QueryBuilder[R, PK, CK, IDX, Q, S, M], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from QueryBuilder[R, PK, CK, IDX, Q, S, M] to ArrowAssoc[QueryBuilder[R, PK, CK, IDX, Q, S, M]] performed by method ArrowAssoc in scala.Predef. This conversion will take place only if M is Materializable (M =:= Materializable).
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion TableQueryBuilderSyntax from QueryBuilder[R, PK, CK, IDX, Q, S, M] to TableQueryBuilderSyntax[R, PK, CK, IDX, Q, S]

Inherited by implicit conversion any2stringadd from QueryBuilder[R, PK, CK, IDX, Q, S, M] to any2stringadd[QueryBuilder[R, PK, CK, IDX, Q, S, M]]

Inherited by implicit conversion StringFormat from QueryBuilder[R, PK, CK, IDX, Q, S, M] to StringFormat[QueryBuilder[R, PK, CK, IDX, Q, S, M]]

Inherited by implicit conversion Ensuring from QueryBuilder[R, PK, CK, IDX, Q, S, M] to Ensuring[QueryBuilder[R, PK, CK, IDX, Q, S, M]]

Inherited by implicit conversion ArrowAssoc from QueryBuilder[R, PK, CK, IDX, Q, S, M] to ArrowAssoc[QueryBuilder[R, PK, CK, IDX, Q, S, M]]

Ungrouped