com.outworkers.phantom.streams

StreamedCassandraTable

implicit final class StreamedCassandraTable[CT <: CassandraTable[CT, T], T] extends AnyVal

CT

the concrete type inheriting from CassandraTable

T

the type of the streamed element

Linear Supertypes
AnyVal, NotNull, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StreamedCassandraTable
  2. AnyVal
  3. NotNull
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StreamedCassandraTable(ct: CassandraTable[CT, T])

Value Members

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

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

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

    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. val ct: CassandraTable[CT, T]

  6. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  8. def publisher()(implicit session: Session, keySpace: KeySpace, ctx: ExecutionContextExecutor): Publisher[T]

    Creates a stream publisher based on the default ReactiveStreams implementation.

    Creates a stream publisher based on the default ReactiveStreams implementation. This will use the underlying Play enumerator model to convert.

    session

    The Cassandra session to execute the enumeration within.

    keySpace

    The target keyspace.

    returns

    A publisher of records, publishing one record at a time.

  9. def subscriber(batchSize: Int = DEFAULT_BATCH_SIZE, concurrentRequests: Int = DEFAULT_CONCURRENT_REQUESTS, batchType: BatchType = BatchType.Unlogged, flushInterval: Option[FiniteDuration] = None, completionFn: () ⇒ Unit = () => (), errorFn: (Throwable) ⇒ Unit = _ => ())(implicit builder: RequestBuilder[CT, T], system: ActorSystem, session: Session, space: KeySpace, ev: Manifest[T]): BatchSubscriber[CT, T]

    Gets a reactive streams org.reactivestreams.Subscriber with batching capabilities for some phantom CassandraTable.

    Gets a reactive streams org.reactivestreams.Subscriber with batching capabilities for some phantom CassandraTable. This subscriber is able to work for both finite short-lived streams and never-ending long-lived streams. For the latter, a flushInterval parameter can be used.

    batchSize

    the number of elements to include in the Cassandra batch

    concurrentRequests

    the number of concurrent batch operations

    batchType

    the type of the batch.

    flushInterval

    used to schedule periodic batch execution even though the number of statements hasn't been reached yet. Useful in never-ending streams that will never been completed.

    completionFn

    a function that will be invoked when the stream is completed

    errorFn

    a function that will be invoked when an error occurs

    builder

    an implicitly resolved RequestBuilder that wraps a phantom ExecutableStatement. Every T element that gets into the stream from the upstream is turned into a ExecutableStatement by means of this builder.

    system

    the underlying ActorSystem. This org.reactivestreams.Subscriber implementation uses Akka actors, but is not restricted to be used in the context of Akka Streams.

    session

    the Cassandra com.datastax.driver.core.Session

    space

    the Cassandra KeySpace

    ev

    an evidence to get the T type removed by erasure

    returns

    the org.reactivestreams.Subscriber to be connected to a reactive stream typically initiated by a org.reactivestreams.Publisher

    See also

    See http://docs.datastax.com/en/cql/3.1/cql/cql_reference/batch_r.html for further explanation.

  10. def toString(): String

    Definition Classes
    Any

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped