List of usage examples for com.mongodb.async.client MongoCollection listIndexes
ListIndexesIterable<Document> listIndexes(ClientSession clientSession);
From source file:io.vertx.ext.mongo.impl.MongoClientImpl.java
License:Open Source License
@Override public io.vertx.ext.mongo.MongoClient listIndexes(String collection, Handler<AsyncResult<JsonArray>> resultHandler) { requireNonNull(collection, "collection cannot be null"); requireNonNull(resultHandler, "resultHandler cannot be null"); MongoCollection<JsonObject> coll = getCollection(collection); ListIndexesIterable indexes = coll.listIndexes(JsonObject.class); if (indexes != null) { convertMongoIterable(indexes, resultHandler); }//from ww w . j av a 2 s .co m return this; }