com.tuplejump.calliope

CassandraRDDFunctions

class CassandraRDDFunctions[U] extends Logging with SparkHadoopMapReduceUtil with Serializable

Linear Supertypes
Serializable, Serializable, SparkHadoopMapReduceUtil, Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CassandraRDDFunctions
  2. Serializable
  3. Serializable
  4. SparkHadoopMapReduceUtil
  5. Logging
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CassandraRDDFunctions(self: RDD[U])

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

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

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def cql3SaveToCassandra(cas: Cql3CasBuilder)(implicit keyMarshaller: (U) ⇒ CQLRowKeyMap, rowMarshaller: (U) ⇒ CQLRowValues): Unit

    cas

    The configuration to use for saving rdd to Cassandra. This should atleast configure the keyspace, columnfamily and the query to save the entry with.

    keyMarshaller

    A function that accepts a rdd entry:U and returns a Map of KeyName:String -> KeyValue:ByteBuffer

    rowMarshaller

    A function that accepts a rdd entry:U and returns a List of field values:ByteBuffer in the field order in query

    See also

    Cql3CasBuilder

  9. def cql3SaveToCassandra(host: String, port: String, keyspace: String, columnFamily: String, updateCql: String)(implicit keyMarshaller: (U) ⇒ CQLRowKeyMap, rowMarshaller: (U) ⇒ CQLRowValues): Unit

    Saves the RDD data to Cassandra using CQL3 update statement to the given keyspace and comlumn family to a cassandra cluster accessible at host:port

    Saves the RDD data to Cassandra using CQL3 update statement to the given keyspace and comlumn family to a cassandra cluster accessible at host:port

    host

    Host to connect to from the SparkContext. The actual tasks will use their assigned hosts

    port

    RPC port to use from the SparkContext.

    keyspace

    Keyspace to save the RDD

    columnFamily

    ColumnFamily to save the RDD

    updateCql

    The CQL Update query to use to update the entry in cassandra. This MUST be an update query of the form, UPDATE <keyspace>.<columnfamily> SET <field1> = ?, <field2> = ? WHERE <primarykey1> = ? and <primarykey2> = ?

    keyMarshaller

    A function that accepts a rdd entry:U and returns a Map of KeyName:String -> KeyValue:ByteBuffer

    rowMarshaller

    A function that accepts a rdd entry:U and returns a List of field values:ByteBuffer in the field order in query

  10. def cql3SaveToCassandra(keyspace: String, columnFamily: String, updateCql: String)(implicit keyMarshaller: (U) ⇒ CQLRowKeyMap, rowMarshaller: (U) ⇒ CQLRowValues): Unit

    Saves the RDD data to Cassandra using CQL3 update statement to the given keyspace and comlumn family to a cassandra cluster accessible at localhost:9160

    Saves the RDD data to Cassandra using CQL3 update statement to the given keyspace and comlumn family to a cassandra cluster accessible at localhost:9160

    keyspace

    Keyspace to save the RDD

    columnFamily

    ColumnFamily to save the RDD

    updateCql

    The CQL Update query to use to update the entry in cassandra. This MUST be an update query of the form, UPDATE <keyspace>.<columnfamily> SET <field1> = ?, <field2> = ? WHERE <primarykey1> = ? and <primarykey2> = ?

    keyMarshaller

    A function that accepts a rdd entry:U and returns a Map of KeyName:String -> KeyValue:ByteBuffer

    rowMarshaller

    A function that accepts a rdd entry:U and returns a List of field values:ByteBuffer in the field order in query

  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  17. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  18. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  19. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  20. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  21. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  22. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  23. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  24. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  25. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  26. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  27. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  28. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. def newJobContext(conf: Configuration, jobId: JobID): JobContext

    Definition Classes
    SparkHadoopMapReduceUtil
  31. def newTaskAttemptContext(conf: Configuration, attemptId: TaskAttemptID): TaskAttemptContext

    Definition Classes
    SparkHadoopMapReduceUtil
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. def simpleSavetoCas(keyspace: String, columnFamily: String, keyCols: List[CQLKeyColumnName], valueCols: List[CQLColumnName])(implicit marshaller: (U) ⇒ CQLRowMap): Unit

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

    Definition Classes
    AnyRef
  36. def thriftSaveToCassandra(cas: ThriftCasBuilder)(implicit keyMarshaller: (U) ⇒ ThriftRowKey, rowMarshaller: (U) ⇒ ThriftRowMap): Unit

    Save the RDD using the given configuration

    Save the RDD using the given configuration

    cas

    The configuration to use to connect to the cluster

    keyMarshaller

    The Marshaller, that takes in an RDD entry:U and gives a row key

    rowMarshaller

    The Marshaller, that takes in an RDD entry:U and gives a map for columns

    See also

    ThriftCasBuilder

  37. def thriftSaveToCassandra(host: String, port: String, keyspace: String, columnFamily: String)(implicit keyMarshaller: (U) ⇒ ThriftRowKey, rowMarshaller: (U) ⇒ ThriftRowMap): Unit

    Save the RDD to the given keyspace and column family to a cassandra cluster accessible at host:port

    Save the RDD to the given keyspace and column family to a cassandra cluster accessible at host:port

    host

    Host to connect to from the SparkContext. The actual tasks will use their assigned hosts

    port

    RPC port to use from the SparkContext.

    keyspace

    Keyspace to save the RDD

    columnFamily

    ColumnFamily to save the RDD

    keyMarshaller

    The Marshaller, that takes in an RDD entry:U and gives a row key

    rowMarshaller

    The Marshaller, that takes in an RDD entry:U and gives a map for columns

  38. def thriftSaveToCassandra(keyspace: String, columnFamily: String)(implicit keyMarshaller: (U) ⇒ ThriftRowKey, rowMarshaller: (U) ⇒ ThriftRowMap): Unit

    Save the RDD to the given keyspace and column family to a cassandra cluster accessible at localhost:9160

    Save the RDD to the given keyspace and column family to a cassandra cluster accessible at localhost:9160

    keyspace

    Keyspace to save the RDD

    columnFamily

    ColumnFamily to save the RDD

    keyMarshaller

    The Marshaller, that takes in an RDD entry:U and gives a row key

    rowMarshaller

    The Marshaller, that takes in an RDD entry:U and gives a msap for columns

  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from SparkHadoopMapReduceUtil

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped