Package org.apache.accumulo.server.tabletserver

Examples of org.apache.accumulo.server.tabletserver.InMemoryMap$LGroupBin


    this.colVisLen = colVisLen;
   
  }
 
  void init() {
    imm = new InMemoryMap(false, "/tmp");
    key = new Text();
   
    colf = new Text(String.format("%0" + colFamLen + "d", 0));
    colq = new Text(String.format("%0" + colQualLen + "d", 0));
    colv = new ColumnVisibility(String.format("%0" + colVisLen + "d", 0));
View Full Code Here


    this.passes = passes;
   
  }
 
  void init() {
    imm = new InMemoryMap(false, "/tmp");
    key = new Text();
   
    colf = new Text(String.format("%0" + colFamLen + "d", 0));
    colq = new Text(String.format("%0" + colQualLen + "d", 0));
  }
View Full Code Here

    dc.next();
   
  }
 
  public void test2() throws Exception {
    InMemoryMap imm = new InMemoryMap(false, "/tmp");
   
    MemoryIterator ski1 = imm.skvIterator();
    mutate(imm, "r1", "foo:cq1", 3, "bar1");
    MemoryIterator ski2 = imm.skvIterator();
   
    ski1.seek(new Range(), LocalityGroupUtil.EMPTY_CF_SET, false);
    assertFalse(ski1.hasTop());
   
    ski2.seek(new Range(), LocalityGroupUtil.EMPTY_CF_SET, false);
View Full Code Here

    assertFalse(ski2.hasTop());
   
  }
 
  public void test3() throws Exception {
    InMemoryMap imm = new InMemoryMap(false, "/tmp");
   
    mutate(imm, "r1", "foo:cq1", 3, "bar1");
    mutate(imm, "r1", "foo:cq1", 3, "bar2");
    MemoryIterator ski1 = imm.skvIterator();
    mutate(imm, "r1", "foo:cq1", 3, "bar3");
   
    mutate(imm, "r3", "foo:cq1", 3, "bar9");
    mutate(imm, "r3", "foo:cq1", 3, "bara");
   
    MemoryIterator ski2 = imm.skvIterator();
   
    ski1.seek(new Range(new Text("r1")), LocalityGroupUtil.EMPTY_CF_SET, false);
    ae(ski1, "r1", "foo:cq1", 3, "bar2");
    ae(ski1, "r1", "foo:cq1", 3, "bar1");
    assertFalse(ski1.hasTop());
View Full Code Here

    assertFalse(ski1.hasTop());
   
  }
 
  public void test4() throws Exception {
    InMemoryMap imm = new InMemoryMap(false, "/tmp");
   
    mutate(imm, "r1", "foo:cq1", 3, "bar1");
    mutate(imm, "r1", "foo:cq1", 3, "bar2");
    MemoryIterator ski1 = imm.skvIterator();
    mutate(imm, "r1", "foo:cq1", 3, "bar3");
   
    imm.delete(0);
   
    ski1.seek(new Range(new Text("r1")), LocalityGroupUtil.EMPTY_CF_SET, false);
    ae(ski1, "r1", "foo:cq1", 3, "bar2");
    ae(ski1, "r1", "foo:cq1", 3, "bar1");
    assertFalse(ski1.hasTop());
View Full Code Here

   
    ski1.close();
  }
 
  public void test5() throws Exception {
    InMemoryMap imm = new InMemoryMap(false, "/tmp");
   
    mutate(imm, "r1", "foo:cq1", 3, "bar1");
    mutate(imm, "r1", "foo:cq1", 3, "bar2");
    mutate(imm, "r1", "foo:cq1", 3, "bar3");
   
    MemoryIterator ski1 = imm.skvIterator();
    ski1.seek(new Range(new Text("r1")), LocalityGroupUtil.EMPTY_CF_SET, false);
    ae(ski1, "r1", "foo:cq1", 3, "bar3");
   
    imm.delete(0);
   
    ae(ski1, "r1", "foo:cq1", 3, "bar2");
    ae(ski1, "r1", "foo:cq1", 3, "bar1");
    assertFalse(ski1.hasTop());
   
    ski1.close();
   
    imm = new InMemoryMap(false, "/tmp");
   
    mutate(imm, "r1", "foo:cq1", 3, "bar1");
    mutate(imm, "r1", "foo:cq2", 3, "bar2");
    mutate(imm, "r1", "foo:cq3", 3, "bar3");
   
    ski1 = imm.skvIterator();
    ski1.seek(new Range(new Text("r1")), LocalityGroupUtil.EMPTY_CF_SET, false);
    ae(ski1, "r1", "foo:cq1", 3, "bar1");
   
    imm.delete(0);
   
    ae(ski1, "r1", "foo:cq2", 3, "bar2");
    ae(ski1, "r1", "foo:cq3", 3, "bar3");
    assertFalse(ski1.hasTop());
   
View Full Code Here

   
    ski1.close();
  }
 
  public void test6() throws Exception {
    InMemoryMap imm = new InMemoryMap(false, "/tmp");
   
    mutate(imm, "r1", "foo:cq1", 3, "bar1");
    mutate(imm, "r1", "foo:cq2", 3, "bar2");
    mutate(imm, "r1", "foo:cq3", 3, "bar3");
    mutate(imm, "r1", "foo:cq4", 3, "bar4");
   
    MemoryIterator ski1 = imm.skvIterator();
   
    mutate(imm, "r1", "foo:cq5", 3, "bar5");
   
    SortedKeyValueIterator<Key,Value> dc = ski1.deepCopy(null);
   
    ski1.seek(new Range(nk("r1", "foo:cq1", 3), null), LocalityGroupUtil.EMPTY_CF_SET, false);
    ae(ski1, "r1", "foo:cq1", 3, "bar1");
   
    dc.seek(new Range(nk("r1", "foo:cq2", 3), null), LocalityGroupUtil.EMPTY_CF_SET, false);
    ae(dc, "r1", "foo:cq2", 3, "bar2");
   
    imm.delete(0);
   
    ae(ski1, "r1", "foo:cq2", 3, "bar2");
    ae(dc, "r1", "foo:cq3", 3, "bar3");
    ae(ski1, "r1", "foo:cq3", 3, "bar3");
    ae(dc, "r1", "foo:cq4", 3, "bar4");
View Full Code Here

   
    ski1.close();
  }
 
  public void testBug1() throws Exception {
    InMemoryMap imm = new InMemoryMap(false, "/tmp");
   
    for (int i = 0; i < 20; i++) {
      mutate(imm, "r1", "foo:cq" + i, 3, "bar" + i);
    }
   
    for (int i = 0; i < 20; i++) {
      mutate(imm, "r2", "foo:cq" + i, 3, "bar" + i);
    }
   
    MemoryIterator ski1 = imm.skvIterator();
   
    imm.delete(0);
   
    ArrayList<ByteSequence> columns = new ArrayList<ByteSequence>();
    columns.add(new ArrayByteSequence("bar"));
   
    // this seek resulted in an infinite loop before a bug was fixed
View Full Code Here

    dc.next();
   
  }
 
  public void test2() throws Exception {
    InMemoryMap imm = new InMemoryMap(false);
   
    MemoryIterator ski1 = imm.skvIterator();
    mutate(imm, "r1", "foo:cq1", 3, "bar1");
    MemoryIterator ski2 = imm.skvIterator();
   
    ski1.seek(new Range(), LocalityGroupUtil.EMPTY_CF_SET, false);
    assertFalse(ski1.hasTop());
   
    ski2.seek(new Range(), LocalityGroupUtil.EMPTY_CF_SET, false);
View Full Code Here

    assertFalse(ski2.hasTop());
   
  }
 
  public void test3() throws Exception {
    InMemoryMap imm = new InMemoryMap(false);
   
    mutate(imm, "r1", "foo:cq1", 3, "bar1");
    mutate(imm, "r1", "foo:cq1", 3, "bar2");
    MemoryIterator ski1 = imm.skvIterator();
    mutate(imm, "r1", "foo:cq1", 3, "bar3");
   
    mutate(imm, "r3", "foo:cq1", 3, "bar9");
    mutate(imm, "r3", "foo:cq1", 3, "bara");
   
    MemoryIterator ski2 = imm.skvIterator();
   
    ski1.seek(new Range(new Text("r1")), LocalityGroupUtil.EMPTY_CF_SET, false);
    ae(ski1, "r1", "foo:cq1", 3, "bar2");
    ae(ski1, "r1", "foo:cq1", 3, "bar1");
    assertFalse(ski1.hasTop());
View Full Code Here

TOP

Related Classes of org.apache.accumulo.server.tabletserver.InMemoryMap$LGroupBin

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.