All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.noenv.wiremongo.command.index.CreateIndexWithOptionsCommand Maven / Gradle / Ivy

There is a newer version: 4.5.10
Show newest version
package com.noenv.wiremongo.command.index;

import io.vertx.core.json.JsonObject;
import io.vertx.ext.mongo.IndexOptions;

public class CreateIndexWithOptionsCommand extends CreateIndexBaseCommand {

  private final IndexOptions options;

  public CreateIndexWithOptionsCommand(String collection, JsonObject key, IndexOptions options) {
    super("createIndexWithOptions", collection, key);
    this.options = options;
  }

  public IndexOptions getOptions() {
    return options;
  }

  @Override
  public String toString() {
    return super.toString() + ", options: " + (options != null ? options.toJson().encode() : "null");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy