com.stratio.datasource.mongodb

MongodbRelation

class MongodbRelation extends BaseRelation with PrunedFilteredScan with InsertableRelation

A MongoDB baseRelation that can eliminate unneeded columns and filter using selected predicates before producing an RDD containing all matching tuples as Row objects.

Linear Supertypes
InsertableRelation, PrunedFilteredScan, BaseRelation, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongodbRelation
  2. InsertableRelation
  3. PrunedFilteredScan
  4. BaseRelation
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongodbRelation(config: Config, schemaProvided: Option[StructType] = scala.None)(sqlContext: SQLContext)

    config

    A Mongo configuration with needed properties for MongoDB

    schemaProvided

    The optionally provided schema. If not provided, it will be inferred from the whole field projection of the specified table in Spark SQL statement using a sample ratio (as JSON Data Source does).

    sqlContext

    An existing Spark SQL context.

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. implicit val _: Config

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def buildScan(requiredColumns: Array[String], filters: Array[Filter]): RDD[Row]

    Definition Classes
    MongodbRelation → PrunedFilteredScan
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean

    Compare if two MongodbRelation are the same.

    Compare if two MongodbRelation are the same.

    other

    Object to compare

    returns

    Boolean

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

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

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

    Definition Classes
    MongodbRelation → AnyRef → Any
  15. def insert(data: DataFrame, overwrite: Boolean): Unit

    Insert data into the specified DataSource.

    Insert data into the specified DataSource.

    data

    Data to insert.

    overwrite

    Boolean indicating whether to overwrite the data.

    Definition Classes
    MongodbRelation → InsertableRelation
  16. def isEmptyCollection: Boolean

    Indicates if a collection is empty.

    Indicates if a collection is empty.

    returns

    Boolean

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def needConversion: Boolean

    Definition Classes
    BaseRelation
  20. final def notify(): Unit

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

    Definition Classes
    AnyRef
  22. val schema: StructType

    Definition Classes
    MongodbRelation → BaseRelation
  23. def sizeInBytes: Long

    Definition Classes
    BaseRelation
  24. val sqlContext: SQLContext

    An existing Spark SQL context.

    An existing Spark SQL context.

    Definition Classes
    MongodbRelation → BaseRelation
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from InsertableRelation

Inherited from PrunedFilteredScan

Inherited from BaseRelation

Inherited from AnyRef

Inherited from Any

Ungrouped