public List<DBObject> getIndexInfo() {
        return new MongoIterableImpl<DBObject>(null, executor, ReadConcern.DEFAULT, primary(), retryReads) {
            @Override
            public ReadOperation<BatchCursor<DBObject>> asReadOperation() {
                return new ListIndexesOperation<DBObject>(getNamespace(), getDefaultDBObjectCodec()).retryReads(retryReads);
            }
        }.into(new ArrayList<DBObject>());
    }
public List<DBObject> getIndexInfo() {
        return new MongoIterableImpl<DBObject>(null, executor, ReadConcern.DEFAULT, primary(), retryReads) {
            @Override
            public ReadOperation<BatchCursor<DBObject>> asReadOperation() {
                return new ListIndexesOperation<DBObject>(getNamespace(), getDefaultDBObjectCodec()).retryReads(retryReads);
            }
        }.into(new ArrayList<DBObject>());
    }
public List < DBObject > getIndexInfo ( ) { return new MongoIterableImpl < DBObject > ( null , executor , ReadConcern . DEFAULT , primary ( ) , retryReads ) { @ Override public ReadOperation < BatchCursor < DBObject > > asReadOperation ( ) { return new ListIndexesOperation < DBObject > ( getNamespace ( ) , getDefaultDBObjectCodec ( ) ) . retryReads ( retryReads ) ; } } . into ( new ArrayList < DBObject > ( ) ) ; }
Return a list of the indexes for this collection.  Each object in the list is the "info document" from MongoDB

@return list of index documents
@throws MongoException if the operation failed
@mongodb.driver.manual core/indexes/ Indexes
Return a list of the indexes for this collection . Each object in the list is the info document from MongoDB