Object

com.mongodb.spark.sql

MongoInferSchema

Related Doc: package sql

Permalink

object MongoInferSchema extends Logging

Linear Supertypes
Logging, LoggingTrait, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoInferSchema
  2. Logging
  3. LoggingTrait
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 apply(mongoRDD: MongoRDD[BsonDocument]): StructType

    Permalink

    Gets a schema for the specified mongo collection.

    Gets a schema for the specified mongo collection. It is required that the collection provides Documents.

    Utilizes the $sample aggregation operator in server versions 3.2+. Older versions take a sample of the most recent 10k documents.

    mongoRDD

    the MongoRDD to be sampled

    returns

    the schema for the collection

  5. def apply(sc: SparkContext): StructType

    Permalink

    Gets a schema for the specified mongo collection.

    Gets a schema for the specified mongo collection. It is required that the collection provides Documents.

    Utilizes the $sample aggregation operator in server versions 3.2+. Older versions take a sample of the most recent 10k documents.

    sc

    the spark context

    returns

    the schema for the collection

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val compatibleDecimalTypes: Seq[NumericType with Product with Serializable]

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getCompatibleArraySchema(bsonArray: Seq[BsonValue]): DataType

    Permalink
  14. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  16. def log: Logger

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  18. def logDebug(msg: ⇒ String): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  20. def logError(msg: ⇒ String): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  22. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  23. def logName: String

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  25. def logTrace(msg: ⇒ String): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  27. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingTrait
  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 reflectSchema[T](beanClass: Class[T]): StructType

    Permalink
  32. def reflectSchema[T <: Product]()(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Option[StructType]

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

    Permalink
    Definition Classes
    AnyRef
  34. def toString(): String

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

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

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

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

Inherited from Logging

Inherited from LoggingTrait

Inherited from AnyRef

Inherited from Any

Ungrouped