Package org.apache.accumulo.core.conf

Examples of org.apache.accumulo.core.conf.SiteConfiguration.clear()


    }
  }
 
  public void test1() throws IOException {
    SiteConfiguration conf = AccumuloConfiguration.getSiteConfiguration();
    conf.clear();
   
    // create an iterator that adds 1 and then squares
    conf.set(Property.TABLE_ITERATOR_PREFIX + IteratorScope.minc.name() + ".addIter", "1," + AddingIter.class.getName());
    conf.set(Property.TABLE_ITERATOR_PREFIX + IteratorScope.minc.name() + ".sqIter", "2," + SquaringIter.class.getName());
   
View Full Code Here


  public void test4() throws IOException {
   
    // try loading for a different scope
   
    SiteConfiguration conf = AccumuloConfiguration.getSiteConfiguration();
    conf.clear();
   
    TreeMap<Key,Value> tm = new TreeMap<Key,Value>();
   
    MultiIteratorTest.nkv(tm, 1, 0, false, "1");
    MultiIteratorTest.nkv(tm, 2, 0, false, "2");
View Full Code Here

 
  public void test3() throws IOException {
    // change the load order, so it squares and then adds
   
    SiteConfiguration conf = AccumuloConfiguration.getSiteConfiguration();
    conf.clear();
   
    TreeMap<Key,Value> tm = new TreeMap<Key,Value>();
   
    MultiIteratorTest.nkv(tm, 1, 0, false, "1");
    MultiIteratorTest.nkv(tm, 2, 0, false, "2");
View Full Code Here

 
  public void test2() throws IOException {
   
    SiteConfiguration conf = AccumuloConfiguration.getSiteConfiguration();
   
    conf.clear();
    // create an iterator that adds 1 and then squares
    conf.set(Property.TABLE_ITERATOR_PREFIX + IteratorScope.minc.name() + ".addIter", "1," + AddingIter.class.getName());
    conf.set(Property.TABLE_ITERATOR_PREFIX + IteratorScope.minc.name() + ".addIter.opt.amount", "7");
    conf.set(Property.TABLE_ITERATOR_PREFIX + IteratorScope.minc.name() + ".sqIter", "2," + SquaringIter.class.getName());
   
View Full Code Here

  }
 
  public void test5() throws IOException {
    SiteConfiguration conf = AccumuloConfiguration.getSiteConfiguration();
   
    conf.clear();
    // create an iterator that ages off
    conf.set(Property.TABLE_ITERATOR_PREFIX + IteratorScope.minc.name() + ".filter", "1," + FilteringIterator.class.getName());
    conf.set(Property.TABLE_ITERATOR_PREFIX + IteratorScope.minc.name() + ".filter.opt.0", AgeOffFilter.class.getName());
    conf.set(Property.TABLE_ITERATOR_PREFIX + IteratorScope.minc.name() + ".filter.opt.0.ttl", "100");
    conf.set(Property.TABLE_ITERATOR_PREFIX + IteratorScope.minc.name() + ".filter.opt.0.currentTime", "1000");
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.