Would be really nice to check the key count also.  I experimented with doing 
this locally.  The following checks the key count and narrows the file stats 
checks.

```java
    Collection<Summary> summaries = 
RFile.summaries().from(file).withFileSystem(fs)
        .withTableProperties(cryptoOnConf).read();

    assertEquals(1, summaries.size());
    Summary summary = Iterables.getOnlyElement(summaries);
    assertEquals(keys.size(), (long)summary.getStatistics().get("keys"));
    assertEquals(1, summary.getStatistics().size());
    assertEquals(0, summary.getFileStatistics().getInaccurate());
    assertEquals(1, summary.getFileStatistics().getTotal());
```

[ Full content available at: https://github.com/apache/accumulo/pull/679 ]
This message was relayed via gitbox.apache.org for devnull@infra.apache.org

Reply via email to