class BaseMongoSource[T <: AnyRef] extends RichSourceFunction[T] with ResultTypeQueryable[T] with Logging
Mongo source
- T
Type of element that comes from the database
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BaseMongoSource
- Logging
- ResultTypeQueryable
- RichSourceFunction
- SourceFunction
- AbstractRichFunction
- RichFunction
- Function
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
BaseMongoSource(userConfig: Map[String, String], query: BsonDocument)(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
-
def
cancel(): Unit
- Definition Classes
- BaseMongoSource → SourceFunction
- var client: MongoClient
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
def
close(): Unit
- Definition Classes
- BaseMongoSource → AbstractRichFunction → RichFunction
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit lazy val formats: Formats
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
getProducedType(): TypeInformation[T]
- Definition Classes
- BaseMongoSource → ResultTypeQueryable
-
def
getRuntimeContext(): RuntimeContext
- Definition Classes
- AbstractRichFunction → RichFunction
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- var isWaiting: Boolean
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
open(parameters: Configuration): Unit
- Definition Classes
- BaseMongoSource → AbstractRichFunction → RichFunction
- val outputClassType: Class[T]
- val query: BsonDocument
-
def
run(ctx: SourceContext[T]): Unit
Runs the mongo source.
Runs the mongo source.
First gets the collection and executes an empty query on all the data. The data is then received in an async manner sending items to the context.
- Definition Classes
- BaseMongoSource → SourceFunction
-
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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )