Package org.apache.accumulo.core.iterators

Examples of org.apache.accumulo.core.iterators.Combiner.reduce()


    GlobalIndexUidCombiner.setLossyness(setting, true);
    comb.init(null, setting.getOptions(), null);
    Logger.getLogger(GlobalIndexUidCombiner.class).setLevel(Level.OFF);
    Value val = new Value(UUID.randomUUID().toString().getBytes());
    values.add(val);
    Value result = comb.reduce(new Key(), values.iterator());
    Uid.List resultList = Uid.List.parseFrom(result.get());
    assertTrue(resultList.getIGNORE() == false);
    assertTrue(resultList.getUIDCount() == 0);
    assertTrue(resultList.getCOUNT() == 0);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.