Package org.apache.accumulo.examples.simple.dirlist

Examples of org.apache.accumulo.examples.simple.dirlist.FileCount


  public void test() throws Exception {
    Scanner scanner = new MockInstance("counttest").getConnector("root", "".getBytes()).createScanner("dirlisttable", new Authorizations());
    scanner.fetchColumn(new Text("dir"), new Text("counts"));
    assertFalse(scanner.iterator().hasNext());
   
    FileCount fc = new FileCount("counttest", null, "root", "", "dirlisttable", "", "", true);
    fc.run();
   
    ArrayList<Pair<String,String>> expected = new ArrayList<Pair<String,String>>();
    expected.add(new Pair<String,String>(QueryUtil.getRow("").toString(), "1,0,3,3"));
    expected.add(new Pair<String,String>(QueryUtil.getRow("/local").toString(), "2,1,2,3"));
    expected.add(new Pair<String,String>(QueryUtil.getRow("/local/user1").toString(), "0,2,0,2"));
View Full Code Here

TOP

Related Classes of org.apache.accumulo.examples.simple.dirlist.FileCount

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.