class BaseMongoSink[T <: AnyRef] extends RichSinkFunction[T]
Mongo sink
- T
Type of element that goes into the database
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BaseMongoSink
- RichSinkFunction
- SinkFunction
- AbstractRichFunction
- RichFunction
- Function
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
BaseMongoSink(userConfig: Map[String, String])(implicit arg0: Manifest[T], arg1: ClassTag[T])
- userConfig
User configuration. Properties [server, database, collection]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- var client: MongoClient
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
- Definition Classes
- BaseMongoSink → AbstractRichFunction → RichFunction
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- implicit lazy val formats: Formats
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
def
getIterationRuntimeContext(): IterationRuntimeContext
- Definition Classes
- AbstractRichFunction → RichFunction
-
def
getRuntimeContext(): RuntimeContext
- Definition Classes
- AbstractRichFunction → RichFunction
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
open(parameters: Configuration): Unit
- Definition Classes
- BaseMongoSink → AbstractRichFunction → RichFunction
-
def
setRuntimeContext(arg0: RuntimeContext): Unit
- Definition Classes
- AbstractRichFunction → RichFunction
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- val userConfig: Map[String, String]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
Deprecated Value Members
-
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.