File tree Expand file tree Collapse file tree
driver/src/main/org/mongodb/operation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333import static org .mongodb .operation .QueryOperationHelper .queryResultToListAsync ;
3434
3535/**
36- * An operation that gets the indexes that have been created on a collection.
36+ * An operation that gets the indexes that have been created on a collection. For flexibility,
37+ * the type of each document returned is generic.
38+ *
39+ * @param <T> the document type for each index
3740 *
3841 * @since 3.0
3942 */
4043public class GetIndexesOperation <T > implements AsyncReadOperation <List <T >>, ReadOperation <List <T >> {
4144 private final MongoNamespace collectionNamespace ;
4245 private final Decoder <T > decoder ;
4346
47+ /**
48+ * Construct a new instance
49+ *
50+ * @param collectionNamespace the namespace of the collection to get the indexes for
51+ * @param decoder the decoder for the indexes
52+ */
4453 public GetIndexesOperation (final MongoNamespace collectionNamespace , final Decoder <T > decoder ) {
4554 this .collectionNamespace = notNull ("collectionNamespace" , collectionNamespace );
4655 this .decoder = decoder ;
You can’t perform that action at this time.
0 commit comments