Package | Description |
---|---|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains client interfaces
|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
Modifier and Type | Method and Description |
---|---|
void |
MongoDatabase.createCollection(String collectionName,
CreateCollectionOptions options,
SingleResultCallback<Void> callback)
Create a new collection with the selected options
|
Modifier and Type | Method and Description |
---|---|
void |
MongoDatabase.createCollection(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.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(Boolean usePowerOf2Sizes)
Sets whether the usePowerOf2Sizes allocation strategy is turned on for this collection.
|
CreateCollectionOptions |
CreateCollectionOptions.validationOptions(ValidationOptions validationOptions)
Sets the validation options for documents being inserted or updated in a collection
|
Copyright © 2016. All Rights Reserved.