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