Package

com.ryft.spark

connector

Permalink

package connector

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. connector
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. class DataFrameFunctions extends Logging

    Permalink

    Provides Ryft-specific methods on org.apache.spark.sql.DataFrame

  2. implicit class FormatImplicits extends AnyRef

    Permalink

    Represents implicit conversions for com.ryft.spark.connector.query.value.RyftQueryValue DSL

  3. case class FullSubParams(value: Value, operator: RyftValueOperator, format: Format) extends Product with Serializable

    Permalink
  4. implicit class FullSubParamsImplicits extends AnyRef

    Permalink
  5. class PairRDDFunctions[K] extends Logging

    Permalink

    Provides Ryft-specific methods on pair org.apache.spark.rdd.RDD

  6. class RDDFunctions[T] extends Logging

    Permalink

    Provides Ryft-specific methods on org.apache.spark.rdd.RDD

  7. implicit class RyftDataFrameReader extends AnyRef

    Permalink

    Adds a method, ryft, to DataFrameReader that allows you to read ryft files using the DataFileReader

  8. implicit class RyftQueryImplicits extends AnyRef

    Permalink

    Allows to use com.ryft.spark.connector.query.RecordQuery DSL

  9. class SparkContextFunctions extends Logging

    Permalink

    Provides Ryft-specific methods on SparkContext

  10. implicit class ValueImplicits extends AnyRef

    Permalink

Value Members

  1. package config

    Permalink
  2. package domain

    Permalink

    Provides classes to describe query data model.

    Provides classes to describe query data model.

    Overview

    Here are some essential enums and classes.

    com.ryft.spark.connector.domain.LogicalOperator - Logical operators (and, or, xor) used by com.ryft.spark.connector.query.RyftQuery.

    com.ryft.spark.connector.domain.Action - Represents action on RyftOne and corresponding REST endpoint. Currently supoprted Search and Count.

    com.ryft.spark.connector.domain.RyftQueryOptions - And important class representing REST Search query parameters, like fuzziness, surrounding, list of fields and number of nodes to use for search.

  3. package exception

    Permalink

    Provides classes to represent connector specific exceptions.

  4. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  5. def log: Logger

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  12. def logName: String

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  17. package partitioner

    Permalink
  18. package preferred

    Permalink
  19. package query

    Permalink

    Provides classes to represent different RyftOne queries.

    Provides classes to represent different RyftOne queries.

    Overview

    The main class to use is com.ryft.spark.connector.query.RecordQuery, as so

    import com.ryft.spark.connector._
    import com.ryft.spark.connector.domain.{recordField, contains}
    import com.ryft.spark.connector.query.RecordQuery
    
    val query = RecordQuery(recordField("Date"), contains, "04/14/2015")
                       .and(recordField("Arrest"), contains, "false")

    For raw text searches com.ryft.spark.connector.query.SimpleQuery class should be used, as so

    import com.ryft.spark.connector._
    import com.ryft.spark.connector.query.SimpleQuery
    
    val query = SimpleQuery("James Bond")
  20. package rdd

    Permalink

    Provides classes for RyftOne connector specific RDD operations.

  21. package rest

    Permalink
  22. package sql

    Permalink

    Provides classes for DataFrames and SparkSQL support.

    Provides classes for DataFrames and SparkSQL support.

    Overview

    These classes are not intended to be used directly but should be accessed via com.ryft.spark.connector.RyftDataFrameReader

    For example:

    import org.apache.spark.sql.SQLContext
    import org.apache.spark.sql.types._
    import org.apache.spark.{SparkConf, SparkContext}
    import com.ryft.spark.connector._
    
    // Definition for the DataFrame setup
    val schema = StructType(Seq(
    StructField("Arrest", BooleanType), StructField("Beat", IntegerType),
    StructField("Block", StringType), StructField("CaseNumber", StringType),
    StructField("_index", StructType(Seq(
      StructField("file", StringType), StructField("offset", StringType),
      StructField("length", IntegerType), StructField("fuzziness", ByteType)))
     )
    ))
    
    sqlContext.read.ryft(schema, "*.crimestat", "crime_table")
  23. implicit def toDataFrameFunctions(df: DataFrame): DataFrameFunctions

    Permalink
  24. implicit def toListRyftQueryValue(values: List[Any]): List[RyftQueryValue]

    Permalink
  25. implicit def toPairRDDFunctions[K](rdd: RDD[(K, Array[Byte])]): PairRDDFunctions[K]

    Permalink
  26. implicit def toRDDFunctions[T](rdd: RDD[T]): RDDFunctions[T]

    Permalink
  27. implicit def toSparkContextFunctions(sc: SparkContext): SparkContextFunctions

    Permalink
  28. package util

    Permalink

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped