Created
March 4, 2015 08:08
-
-
Save fge/d580a946dc5b74449b39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Nonnull | |
@Override | |
public List<PerClassStatistics> getRulesByClass() | |
throws GrappaDebuggerException | |
{ | |
waitForMatchers(); | |
return jooq.select(MATCHERS.CLASS_NAME, DSL.count().as("nrCalls"), | |
DSL.countDistinct(NODES.MATCHER_ID).as("nrRules")) | |
.from(MATCHERS, NODES) | |
.where(NODES.MATCHER_ID.eq(MATCHERS.ID)) | |
.groupBy(MATCHERS.CLASS_NAME) | |
.fetch() | |
.map(new PerClassStatisticsMapper()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment