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

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

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

import com.noenv.wiremongo.command.collection.WithCollectionCommand;
import io.vertx.core.json.JsonObject;

public class CreateIndexBaseCommand extends WithCollectionCommand {

  private final JsonObject key;

  public CreateIndexBaseCommand(String collection, JsonObject key) {
    this("createIndex", collection, key);
  }

  public CreateIndexBaseCommand(String method, String collection, JsonObject key) {
    super(method, collection);
    this.key = key;
  }

  public JsonObject getKey() {
    return key;
  }

  @Override
  public String toString() {
    return super.toString() + ", key: " + key;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy