Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
DBCollection |
DB.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends DBObject> pipeline,
DBCreateViewOptions options)
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
|
Modifier and Type | Method and Description |
---|---|
DBCreateViewOptions |
DBCreateViewOptions.collation(Collation collation)
Sets the collation
|