Package | Description |
---|---|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
CreateCollectionOperation |
CreateCollectionOperation.autoIndex(boolean autoIndex)
Sets if _id field of the collection is indexed.
|
CreateCollectionOperation |
CreateCollectionOperation.capped(boolean capped)
Sets whether the collection is capped.
|
CreateCollectionOperation |
CreateCollectionOperation.indexOptionDefaults(BsonDocument indexOptionDefaults)
Sets the index option defaults document for the collection.
|
CreateCollectionOperation |
CreateCollectionOperation.maxDocuments(long maxDocuments)
Set the maximum number of documents in the collection.
|
CreateCollectionOperation |
CreateCollectionOperation.sizeInBytes(long sizeInBytes)
Sets the maximum size of the collection in bytes.
|
CreateCollectionOperation |
CreateCollectionOperation.storageEngineOptions(BsonDocument storageEngineOptions)
Sets the storage engine options document for this collection.
|
CreateCollectionOperation |
CreateCollectionOperation.usePowerOf2Sizes(Boolean usePowerOf2Sizes)
Sets whether usePowerOf2Sizes should be used foe the allocation strategy.
|
CreateCollectionOperation |
CreateCollectionOperation.validationAction(ValidationAction validationAction)
Sets the
ValidationAction that determines whether to error on invalid documents or just warn about the violations but allow
invalid documents. |
CreateCollectionOperation |
CreateCollectionOperation.validationLevel(ValidationLevel validationLevel)
Sets the validation level that determines how strictly MongoDB applies the validation rules to existing documents during an insert
or update.
|
CreateCollectionOperation |
CreateCollectionOperation.validator(BsonDocument validator)
Sets the validation rules for inserting or updating documents
|
Copyright © 2016. All Rights Reserved.