Packages

class BaseMongoSink[T <: AnyRef] extends RichSinkFunction[T]

Mongo sink

T

Type of element that goes into the database

Linear Supertypes
RichSinkFunction[T], SinkFunction[T], AbstractRichFunction, RichFunction, Function, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseMongoSink
  2. RichSinkFunction
  3. SinkFunction
  4. AbstractRichFunction
  5. RichFunction
  6. Function
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BaseMongoSink(userConfig: Map[String, String])(implicit arg0: Manifest[T], arg1: ClassTag[T])

    userConfig

    User configuration. Properties [server, database, collection]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. var client: MongoClient
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def close(): Unit
    Definition Classes
    BaseMongoSink → AbstractRichFunction → RichFunction
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. implicit lazy val formats: Formats
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getCollection: MongoCollection[Document]

    Get the mongo collection for the configuration.

    Get the mongo collection for the configuration.

    This is not verified to exist; it will be created upon first use.

    returns

    Mongo Collection

  14. def getIterationRuntimeContext(): IterationRuntimeContext
    Definition Classes
    AbstractRichFunction → RichFunction
  15. def getRuntimeContext(): RuntimeContext
    Definition Classes
    AbstractRichFunction → RichFunction
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def invoke(value: T, context: Context[_]): Unit

    Send a value to mongo

    Send a value to mongo

    Convert the value to JSON and then to a BSON document. Then insert it into the collection.

    value

    Element

    context

    Context

    Definition Classes
    BaseMongoSink → SinkFunction
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def open(parameters: Configuration): Unit
    Definition Classes
    BaseMongoSink → AbstractRichFunction → RichFunction
  23. def setRuntimeContext(arg0: RuntimeContext): Unit
    Definition Classes
    AbstractRichFunction → RichFunction
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. val userConfig: Map[String, String]
  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
    @native() @throws( ... )

Deprecated Value Members

  1. def invoke(arg0: T): Unit
    Definition Classes
    SinkFunction
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Exception] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from RichSinkFunction[T]

Inherited from SinkFunction[T]

Inherited from AbstractRichFunction

Inherited from RichFunction

Inherited from Function

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped