Class MongoPipeline
java.lang.Object
com.barden.library.database.mongo.pipeline.MongoPipeline
Mongo pipeline.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMongoPipeline(String database, String collection, String key, Object value) Creates Mongo pipeline object. -
Method Summary
Modifier and TypeMethodDescriptionconfigure(Object key, String path, Consumer<MongoPipeline.Index> consumer) Configure pipeline index.Creates new pipeline executor object.Gets collection.getConsumer(Object key) Gets consumer.Gets consumers.Gets database.org.bson.DocumentGets document.getKey()Gets key.Gets path.getPaths()Gets paths.getUID()Gets UID.getValue()Gets value.setConsumer(Object key, Consumer<MongoPipeline.Index> consumer) Sets consumer.Gets path.
-
Constructor Details
-
Method Details
-
getUID
Gets UID.- Returns:
- UID.
-
getDatabase
Gets database.- Returns:
- Database.
-
getCollection
Gets collection.- Returns:
- Collection.
-
getKey
Gets key.- Returns:
- Key.
-
getValue
Gets value.- Returns:
- Value.
-
getDocument
@Nonnull public org.bson.Document getDocument()Gets document.- Returns:
- Document.
-
getPaths
Gets paths.- Returns:
- Paths.
-
getPath
Gets path.- Parameters:
key- Key.- Returns:
- Path value.
-
setPath
Gets path.- Parameters:
key- Key.value- Path value.- Returns:
- Mongo pipeline builder.
-
getConsumers
Gets consumers.- Returns:
- Consumers.
-
getConsumer
Gets consumer.- Parameters:
key- Key.- Returns:
- Consumer.
-
setConsumer
@Nonnull public MongoPipeline setConsumer(@Nonnull Object key, @Nonnull Consumer<MongoPipeline.Index> consumer) Sets consumer.- Parameters:
key- Key.consumer- Consumer.- Returns:
- Mongo pipeline builder.
-
configure
@Nonnull public MongoPipeline configure(@Nonnull Object key, String path, @Nonnull Consumer<MongoPipeline.Index> consumer) Configure pipeline index.- Parameters:
key- Key.path- Path.consumer- Consumer.- Returns:
- Mongo pipeline builder.
-
createExecutor
Creates new pipeline executor object.- Returns:
- Mongo Pipeline Executor.
-