Examples of LogAdapterHolder


Examples of org.entityfs.support.log.LogAdapterHolder

    File tmpFile = FileSupport.createTempFile();
    try
    {
      ReadWritableFile f = new ReadWritableFileAdapter(tmpFile);
      byte[] barr = writeJunk(f);
      BPlusTree<Long, Integer> btr = new BPlusTree<Long, Integer>(new FileBackedNodeRepository<Long, Integer>(f, false, f.getSize(), new NumberOfRecordsNodeSizeStrategy(2), true, LongNullSerializer.INSTANCE, IntegerSerializer.INSTANCE, 3, 8192, null, new LogAdapterHolder(new StdOutLogAdapter())), new LogAdapterHolder(new StdOutLogAdapter()));
      try
      {
        btr.insert(12L, 24);
        btr.insert(24L, 12);
        assertEquals(2, btr.size());
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.