Class/Object

io.scalajs.npm.cassandradriver

Client

Related Docs: object Client | package cassandradriver

Permalink

class Client extends Object with IEventEmitter

Cassandra Client

Annotations
@RawJSType() @native() @JSImport( "cassandra-driver" , "Client" )
Linear Supertypes
IEventEmitter, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Client
  2. IEventEmitter
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(options: ClientOptions = js.native)

    Permalink

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 addListener(eventName: String, listener: Function): Client.this.type

    Permalink
    Definition Classes
    IEventEmitter
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def batch(queries: Array[BatchUpdate], options: |[QueryOptions, RawOptions], callback: Function): Unit

    Permalink

    Allows you can execute multiple statements in a batch to update/insert several rows atomically even in different column families.

    Allows you can execute multiple statements in a batch to update/insert several rows atomically even in different column families.

    queries

    the given array of queries

    options

    the given query options

    callback

    the callback function

    Example:
    1. client.batch(queries, { prepare: true }, function(err) { ... })
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. var domain: String

    Permalink
    Definition Classes
    IEventEmitter
  9. def eachRow(query: String, params: CassandraParams, callback: Function): Unit

    Permalink

    When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.

    When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.

    query

    the given query

    params

    the given query parameters

    callback

    the callback function

    Example:
    1. client.eachRow('SELECT time, val FROM temperature WHERE station_id=', ['abc'], function(n, row) { ... })
  10. def eachRow[T](query: String, params: CassandraParams, options: RawOptions, callback: Function2[Int, T, Any], endCallback: Function): Unit

    Permalink

    When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.

    When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.

    query

    the given query

    params

    the given query parameters

    options

    the optional query options

    callback

    the callback function

    endCallback

    the callback for the final block of results

    Example:
    1. client.eachRow('SELECT time, val FROM temperature WHERE station_id=', ['abc'], function(n, row) { ... })
  11. def eachRow[T](query: String, params: CassandraParams, options: RawOptions, callback: Function2[Int, T, Any]): Unit

    Permalink

    When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.

    When using #eachRow() and #stream() methods, the driver parses each row as soon as it is received, yielding rows without buffering them.

    query

    the given query

    params

    the given query parameters

    options

    the optional query options

    callback

    the callback function

    Example:
    1. client.eachRow('SELECT time, val FROM temperature WHERE station_id=', ['abc'], function(n, row) { ... })
  12. def emit(name: String, args: Any*): Any

    Permalink
    Definition Classes
    IEventEmitter
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def execute(update: String, params: CassandraParams, options: |[QueryOptions, RawOptions], callback: Function2[Error, Dictionary[_], Any]): Unit

    Permalink

    Executes the update statement and returns the error to the callback function

    Executes the update statement and returns the error to the callback function

    update

    the given update statement

    params

    the given query parameters

    options

    the optional update options

    callback

    the callback function

    Example:
    1. client.execute(query, params, { prepare: true }, function(err) { ... })
  16. def execute(query: String, params: CassandraParams, callback: Function2[Error, Dictionary[_], Any]): Unit

    Permalink

    Executes the query and returns the error or result to the callback function

    Executes the query and returns the error or result to the callback function

    query

    the given query

    params

    the given query parameters

    callback

    the callback function

    Example:
    1. client.execute(query, ['guy'], function(err, result) { ... })
  17. def execute(query: String, callback: Function2[Error, Dictionary[_], Any]): Unit

    Permalink

    Executes the update statement and returns the error to the callback function

    Executes the update statement and returns the error to the callback function

    query

    the given query statement

    callback

    the callback function

    Example:
    1. client.execute(query, params, { prepare: true }, function(err) { ... })
  18. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def getMaxListeners(): Int

    Permalink
    Definition Classes
    IEventEmitter
  21. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  22. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  24. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  25. def listenerCount(eventName: String): Int

    Permalink
    Definition Classes
    IEventEmitter
  26. def listeners(eventName: String): Array[Function]

    Permalink
    Definition Classes
    IEventEmitter
  27. def metadata: ClientMetaData

    Permalink

    Returns the metadata

    Returns the metadata

    returns

    the metadata

  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 on(eventName: String, listener: Function): Client.this.type

    Permalink
    Definition Classes
    IEventEmitter
  32. def once(eventName: String, listener: Function): Client.this.type

    Permalink
    Definition Classes
    IEventEmitter
  33. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  34. def removeAllListeners(): Client.this.type

    Permalink
    Definition Classes
    IEventEmitter
  35. def removeAllListeners(eventName: String): Client.this.type

    Permalink
    Definition Classes
    IEventEmitter
  36. def removeListener(eventName: String, listener: Function): Client.this.type

    Permalink
    Definition Classes
    IEventEmitter
  37. def setMaxListeners(n: Int): Client.this.type

    Permalink
    Definition Classes
    IEventEmitter
  38. def stream(query: String, params: CassandraParams = js.native): Readable

    Permalink

    The #stream() method works in the same way as #eachRow() but instead of callback it returns a Readable Streams2 object in objectMode that emits instances of Row.

    The #stream() method works in the same way as #eachRow() but instead of callback it returns a Readable Streams2 object in objectMode that emits instances of Row. It can be piped downstream and provides automatic pause/resume logic (it buffers when not read).

    query

    the given query

    params

    the given query parameters

    returns

    a Readable

    Example:
    1. client.stream('SELECT time, val FROM temperature WHERE station_id=', ['abc'])
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. var usingDomains: Boolean

    Permalink
    Definition Classes
    IEventEmitter
  43. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  44. final def wait(): Unit

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

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

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

Inherited from IEventEmitter

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped