Class CreateIndexesCommand
- java.lang.Object
-
- de.caluga.morphium.driver.commands.MongoCommand<T>
-
- de.caluga.morphium.driver.commands.WriteMongoCommand<CreateIndexesCommand>
-
- de.caluga.morphium.driver.commands.CreateIndexesCommand
-
public class CreateIndexesCommand extends WriteMongoCommand<CreateIndexesCommand>
-
-
Constructor Summary
Constructors Constructor Description CreateIndexesCommand(MongoConnection d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateIndexesCommandaddIndex(IndexDescription idx)CreateIndexesCommandaddIndex(Map<String,Object> index, Map<String,Object> options)StringgetCommandName()StringgetCommitQuorum()List<Map<String,Object>>getIndexes()CreateIndexesCommandsetCommitQuorum(String commitQuorum)CreateIndexesCommandsetIndexes(List<Map<String,Object>> indexes)-
Methods inherited from class de.caluga.morphium.driver.commands.WriteMongoCommand
execute, getBypassDocumentValidation, getWriteConcern, setBypassDocumentValidation, setWriteConcern
-
Methods inherited from class de.caluga.morphium.driver.commands.MongoCommand
asMap, clear, executeAsync, fromMap, getColl, getComment, getConnection, getDb, getMetaData, releaseConnection, setColl, setComment, setConnection, setDb, setMetaData, setMetaData
-
-
-
-
Constructor Detail
-
CreateIndexesCommand
public CreateIndexesCommand(MongoConnection d)
-
-
Method Detail
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classMongoCommand<CreateIndexesCommand>
-
setIndexes
public CreateIndexesCommand setIndexes(List<Map<String,Object>> indexes)
-
addIndex
public CreateIndexesCommand addIndex(Map<String,Object> index, Map<String,Object> options)
-
getCommitQuorum
public String getCommitQuorum()
-
setCommitQuorum
public CreateIndexesCommand setCommitQuorum(String commitQuorum)
-
addIndex
public CreateIndexesCommand addIndex(IndexDescription idx)
-
-