Class IndexStats

java.lang.Object
dev.morphia.aggregation.stages.Stage
dev.morphia.aggregation.stages.IndexStats

public class IndexStats extends Stage
Returns statistics regarding the use of each index for the collection.
  • Method Details

    • indexStats

      public static IndexStats indexStats()
      Creates the new stage. There is nothing to configure as the collection is determined as part of the pipeline execution.
      Returns:
      the new stage
      Since:
      2.2
      MongoDB documentation
      Aggregration Pipeline Stage: $indexStats
      Since server release
      3.2