Package org.deuce.transaction.tl2.field

Examples of org.deuce.transaction.tl2.field.DoubleWriteFieldAccess


* @since 0.4
*/
public class BloomFilterTest extends TestCase {

  public void testCheckInFilter(){
    BloomFilter filter = new BloomFilter();
    filter.add(34254354);
    Assert.assertTrue(filter.contains(34254354));
  }
View Full Code Here


    filter.add(34254354);
    Assert.assertTrue(filter.contains(34254354));
  }
 
  public void testCheckNotInFilter(){
    BloomFilter filter = new BloomFilter();
    filter.add(34254354);
    Assert.assertFalse(filter.contains(435646));
  }
View Full Code Here

    filter.add(34254354);
    Assert.assertFalse(filter.contains(435646));
  }
 
  public void testCheckClearFilter(){
    BloomFilter filter = new BloomFilter();
    filter.add(34254354);
    filter.clear();
    Assert.assertFalse(filter.contains(34254354));
  }
View Full Code Here

    filter.clear();
    Assert.assertFalse(filter.contains(34254354));
  }
 
  public void testCheckManyInFilter(){
    BloomFilter filter = new BloomFilter();
    for( int i=0 ; i<1000000; i+=3)
      filter.add(i);
   
    for( int i=0 ; i<1000000; i+=3)
      Assert.assertTrue(filter.contains(i));
  }
View Full Code Here

    addWriteAccess0(next);
  }
 
  public void onWriteAccess(Object obj, boolean value, long field) {
   
    BooleanWriteFieldAccess next = booleanPool.getNext();
    next.set(value, obj, field);
    addWriteAccess0(next);
  }
View Full Code Here

    addWriteAccess0(next);
  }

  public void onWriteAccess(Object obj, boolean value, long field) {

    BooleanWriteFieldAccess next = booleanPool.getNext();
    next.set(value, obj, field);
    addWriteAccess0(next);
  }
View Full Code Here

    addWriteAccess0(next);
  }
 
  public void onWriteAccess(Object obj, byte value, long field) {
   
    ByteWriteFieldAccess next = bytePool.getNext();
    next.set(value, obj, field);
    addWriteAccess0(next);
  }
View Full Code Here

    addWriteAccess0(next);
  }

  public void onWriteAccess(Object obj, byte value, long field) {

    ByteWriteFieldAccess next = bytePool.getNext();
    next.set(value, obj, field);
    addWriteAccess0(next);
  }
View Full Code Here

    addWriteAccess0(next);
  }
 
  public void onWriteAccess(Object obj, char value, long field) {
   
    CharWriteFieldAccess next = charPool.getNext();
    next.set(value, obj, field);
    addWriteAccess0(next);
  }
View Full Code Here

    addWriteAccess0(next);
  }

  public void onWriteAccess(Object obj, char value, long field) {

    CharWriteFieldAccess next = charPool.getNext();
    next.set(value, obj, field);
    addWriteAccess0(next);
  }
View Full Code Here

TOP

Related Classes of org.deuce.transaction.tl2.field.DoubleWriteFieldAccess

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.