@Test public void documentCountShouldBeAccurate() throws IOException { DocumentCount dc = new DocumentCount(); int docCount = dc.execute(ctx); assertEquals(26, docCount); }
@Override public Integer execute(IndexContext context) throws IOException { return context.getIndexReader().numDocs(); }
DocumentCount extends IndexReadCommandSingleTable<Integer> { @Override public Integer execute(IndexContext context) throws IOException { return context.getIndexReader().numDocs(); } }
DocumentCount extends IndexReadCommandSingleTable<Integer> { @Override public Integer execute(IndexContext context) throws IOException { return context.getIndexReader().numDocs(); }  }
DocumentCount extends IndexReadCommandSingleTable<Integer> { @Override public Integer execute(IndexContext context) throws IOException { return context.getIndexReader().numDocs(); }  @Override String getName(); @Override Integer execute(IndexContext context); }
DocumentCount extends IndexReadCommandSingleTable<Integer> { @Override public Integer execute(IndexContext context) throws IOException { return context.getIndexReader().numDocs(); }  @Override String getName(); @Override Integer execute(IndexContext context);  }