Class/Object

com.outworkers.phantom.builder.query

InsertQuery

Related Docs: object InsertQuery | package query

Permalink

class InsertQuery[Table <: CassandraTable[Table, _], Record, Status <: ConsistencyBound, PS <: HList] extends ExecutableStatement with Batchable

Linear Supertypes
Batchable, ExecutableStatement, CassandraOperations, SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InsertQuery
  2. Batchable
  3. ExecutableStatement
  4. CassandraOperations
  5. SessionAugmenterImplicits
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InsertQuery(table: Table, init: CQLQuery, columnsPart: ColumnsPart = ColumnsPart.empty, valuePart: ValuePart = ValuePart.empty, usingPart: UsingPart = UsingPart.empty, lightweightPart: LightweightPart = LightweightPart.empty, options: QueryOptions = QueryOptions.empty)

    Permalink

Type Members

  1. type Modifier = (Statement) ⇒ Statement

    Permalink
    Definition Classes
    ExecutableStatement
  2. implicit class RichSession extends SessionAugmenter

    Permalink
    Definition Classes
    SessionAugmenterImplicits

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. def consistencyLevel_=(level: ConsistencyLevel)(implicit session: Session): InsertQuery[Table, Record, Specified, PS]

    Permalink
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def future(modifyStatement: Modifier)(implicit session: Session, executor: ExecutionContextExecutor): Future[ResultSet]

    Permalink

    This will convert the underlying call to Cassandra done with Google Guava ListenableFuture to a consumable Scala Future that will be completed once the operation is completed on the database end.

    This will convert the underlying call to Cassandra done with Google Guava ListenableFuture to a consumable Scala Future that will be completed once the operation is completed on the database end.

    The execution context of the transformation is provided by phantom via com.outworkers.phantom.Manager.scalaExecutor and it is recommended to use com.outworkers.phantom.dsl.context for operations that chain database calls.

    modifyStatement

    The function allowing to modify underlying Statement

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    executor

    The implicit Scala executor.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

    Definition Classes
    ExecutableStatement
  11. def future()(implicit session: Session, ec: ExecutionContextExecutor): Future[ResultSet]

    Permalink

    Default asynchronous query execution method.

    Default asynchronous query execution method. This will convert the underlying call to Cassandra done with Google Guava ListenableFuture to a consumable Scala Future that will be completed once the operation is completed on the database end.

    The execution context of the transformation is provided by phantom via com.outworkers.phantom.Manager.scalaExecutor and it is recommended to use com.outworkers.phantom.dsl.context for operations that chain database calls.

    session

    The implicit session provided by a com.outworkers.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

    Definition Classes
    ExecutableStatement
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def ifNotExists(): InsertQuery[Table, Record, Status, PS]

    Permalink
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def json(value: PrepareMark): InsertJsonQuery[Table, Record, Status, ::[String, PS]]

    Permalink
  17. final def json(value: String): InsertJsonQuery[Table, Record, Status, PS]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. val options: QueryOptions

    Permalink
    Definition Classes
    InsertQueryExecutableStatement
  22. final def p_value[RR](col: (Table) ⇒ AbstractColumn[RR], value: PrepareMark): InsertQuery[Table, Record, Status, ::[RR, PS]]

    Permalink
  23. def prepare[Rev <: HList]()(implicit session: Session, keySpace: KeySpace, ev: =:!=[PS, HNil], rev: Aux[PS, Rev]): PreparedBlock[Rev]

    Permalink
  24. def qb: CQLQuery

    Permalink
    Definition Classes
    InsertQueryExecutableStatement
  25. def queryString: String

    Permalink
    Definition Classes
    ExecutableStatement
  26. def scalaQueryStringExecuteToFuture(st: Statement)(implicit session: Session, executor: ExecutionContextExecutor): Future[ResultSet]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  27. def scalaQueryStringToPromise(st: Statement)(implicit session: Session, executor: ExecutionContextExecutor): Promise[ResultSet]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  28. def statement()(implicit session: Session): Statement

    Permalink
    Definition Classes
    ExecutableStatement
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. final def timestamp(value: DateTime): InsertQuery[Table, Record, Status, PS]

    Permalink
  31. final def timestamp(value: Long): InsertQuery[Table, Record, Status, PS]

    Permalink
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. def ttl(seconds: FiniteDuration): InsertQuery[Table, Record, Status, PS]

    Permalink
  34. def ttl(seconds: Long): InsertQuery[Table, Record, Status, PS]

    Permalink
  35. def ttl(seconds: Int): InsertQuery[Table, Record, Status, PS]

    Permalink
  36. final def ttl(value: PrepareMark): InsertQuery[Table, Record, Status, ::[Int, PS]]

    Permalink
  37. def using(clause: Condition): InsertQuery[Table, Record, Status, PS]

    Permalink
  38. def value[RR](col: (Table) ⇒ AbstractColumn[RR], value: RR)(): InsertQuery[Table, Record, Status, PS]

    Permalink
  39. def valueOp(col: (Table) ⇒ AbstractColumn[_], value: Condition): InsertQuery[Table, Record, Status, PS]

    Permalink

    Insert function adding the ability to specify operator values as the value of an insert.

    Insert function adding the ability to specify operator values as the value of an insert. This is useful when we want to use functions to generate the CQL, such as using the "now()" operator when inserting the value of a date.

    col

    The function that selects a specific column from the table.

    value

    The value to insert in the column, based on the output of the operator.

    returns

    A new instance of insert query, with the clause added.

  40. final def valueOrNull[RR](col: (Table) ⇒ AbstractColumn[RR], value: RR): InsertQuery[Table, Record, Status, PS]

    Permalink
  41. def values[RR](insertions: (CQLQuery, CQLQuery)*): InsertQuery[Table, Record, Status, PS]

    Permalink
  42. final def wait(): Unit

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

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

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

Inherited from Batchable

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped