Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
void |
MongoDatabaseImpl.createCollection(ClientSession clientSession,
java.lang.String collectionName,
CreateCollectionOptions createCollectionOptions) |
void |
MongoDatabaseImpl.createCollection(java.lang.String collectionName,
CreateCollectionOptions createCollectionOptions) |
private void |
MongoDatabaseImpl.executeCreateCollection(ClientSession clientSession,
java.lang.String collectionName,
CreateCollectionOptions createCollectionOptions) |
Modifier and Type | Method and Description |
---|---|
void |
MongoDatabaseImpl.createCollection(ClientSession clientSession,
java.lang.String collectionName,
CreateCollectionOptions options,
SingleResultCallback<java.lang.Void> callback) |
void |
MongoDatabase.createCollection(ClientSession clientSession,
java.lang.String collectionName,
CreateCollectionOptions options,
SingleResultCallback<java.lang.Void> callback)
Create a new collection with the selected options
|
void |
MongoDatabaseImpl.createCollection(java.lang.String collectionName,
CreateCollectionOptions createCollectionOptions,
SingleResultCallback<java.lang.Void> callback) |
void |
MongoDatabase.createCollection(java.lang.String collectionName,
CreateCollectionOptions options,
SingleResultCallback<java.lang.Void> callback)
Create a new collection with the selected options
|
private void |
MongoDatabaseImpl.executeCreateCollection(ClientSession clientSession,
java.lang.String collectionName,
CreateCollectionOptions options,
SingleResultCallback<java.lang.Void> callback) |
Modifier and Type | Method and Description |
---|---|
void |
MongoDatabase.createCollection(ClientSession clientSession,
java.lang.String collectionName,
CreateCollectionOptions createCollectionOptions)
Create a new collection with the selected options
|
void |
MongoDatabase.createCollection(java.lang.String collectionName,
CreateCollectionOptions createCollectionOptions)
Create a new collection with the selected options
|
Modifier and Type | Method and Description |
---|---|
CreateCollectionOptions |
CreateCollectionOptions.autoIndex(boolean autoIndex)
Gets if auto-index is to be enabled on the collection
|
CreateCollectionOptions |
CreateCollectionOptions.capped(boolean capped)
sets whether the collection is capped.
|
CreateCollectionOptions |
CreateCollectionOptions.collation(Collation collation)
Sets the collation options
|
CreateCollectionOptions |
CreateCollectionOptions.indexOptionDefaults(IndexOptionDefaults indexOptionDefaults)
Sets the index option defaults for the collection.
|
CreateCollectionOptions |
CreateCollectionOptions.maxDocuments(long maxDocuments)
Sets the maximum number of documents allowed in a capped collection.
|
CreateCollectionOptions |
CreateCollectionOptions.sizeInBytes(long sizeInBytes)
Gets the maximum size of in bytes of a capped collection.
|
CreateCollectionOptions |
CreateCollectionOptions.storageEngineOptions(Bson storageEngineOptions)
Sets the storage engine options document defaults for the collection
|
CreateCollectionOptions |
CreateCollectionOptions.usePowerOf2Sizes(java.lang.Boolean usePowerOf2Sizes)
Deprecated.
As of MongoDB 3.0, power of 2 sizes is ignored by the MongoDB server
|
CreateCollectionOptions |
CreateCollectionOptions.validationOptions(ValidationOptions validationOptions)
Sets the validation options for documents being inserted or updated in a collection
|