Class CreateCommand
- java.lang.Object
-
- de.caluga.morphium.driver.commands.MongoCommand<CreateCommand>
-
- de.caluga.morphium.driver.commands.CreateCommand
-
public class CreateCommand extends MongoCommand<CreateCommand>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateCommand.Granularity
-
Constructor Summary
Constructors Constructor Description CreateCommand(MongoConnection d)
-
Method Summary
-
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
-
CreateCommand
public CreateCommand(MongoConnection d)
-
-
Method Detail
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classMongoCommand<CreateCommand>
-
getCapped
public Boolean getCapped()
-
setCapped
public CreateCommand setCapped(Boolean capped)
-
setTimeseries
public CreateCommand setTimeseries(Map<String,String> timeseries)
-
setTimeseriesTimeField
public CreateCommand setTimeseriesTimeField(String field)
-
setTimeseriesMetaField
public CreateCommand setTimeseriesMetaField(String field)
-
setTimeseriesGranularity
public CreateCommand setTimeseriesGranularity(CreateCommand.Granularity g)
-
getExpireAfterSeconds
public Integer getExpireAfterSeconds()
-
setExpireAfterSeconds
public CreateCommand setExpireAfterSeconds(Integer expireAfterSeconds)
-
getSize
public Integer getSize()
-
setSize
public CreateCommand setSize(Integer size)
-
getMax
public Integer getMax()
-
setMax
public CreateCommand setMax(Integer max)
-
setStorageEngine
public CreateCommand setStorageEngine(Map<String,Object> storageEngine)
-
setValidator
public CreateCommand setValidator(Map<String,Object> validator)
-
getValidationLevel
public String getValidationLevel()
-
setValidationLevel
public CreateCommand setValidationLevel(String validationLevel)
-
getValidationAction
public String getValidationAction()
-
setValidationAction
public CreateCommand setValidationAction(String validationAction)
-
setIndexOptionDefaults
public CreateCommand setIndexOptionDefaults(Map<String,Object> indexOptionDefaults)
-
getViewOn
public String getViewOn()
-
setViewOn
public CreateCommand setViewOn(String viewOn)
-
setPipeline
public CreateCommand setPipeline(List<Map<String,Object>> pipeline)
-
setCollation
public CreateCommand setCollation(Map<String,Object> collation)
-
setWriteConcern
public CreateCommand setWriteConcern(Map<String,Object> writeConcern)
-
execute
public Map<String,Object> execute() throws MorphiumDriverException
- Throws:
MorphiumDriverException
-
-