Package org.helidb.impl.txn.sc

Examples of org.helidb.impl.txn.sc.SingleFileAndProxiedFileManager


      }
      DatabaseBackendFactory<String, String, Long> baf = new HeapBackendFactory<String, String>(StringSerializer.INSTANCE, StringSerializer.INSTANCE, lah);
      // Only use 7 bits of the most significant byte when hashing to
      // avoid collisions with the serialized null value
      baf = new BPlusTreeIndexBackendFactory<String, String, BigInteger, Long>(baf, nrb, new StringToBigIntegerHasher(STRING_HASH_SIZE, 7), lah);
      ShadowCopyTransactionalDatabase<String, String, Long> db = new ShadowCopyTransactionalDatabase<String, String, Long>(new SingleFileAndProxiedFileManager(new SingleFileManager(ff, tmpDirD), indff, tmpDirD), baf, false, lah);
      m_dbFiles.put(System.identityHashCode(db), new File[] { f, tmpDir, indf });
      m_databases.add(db);
    }
  }
View Full Code Here


      {
        nrb = new LruCacheNodeRepositoryBuilder<Integer, Long>().setProxiedBuilder(nrb).setMaxCacheSize(m_bTreeLruNodeCacheSize);
      }
      DatabaseBackendFactory<Integer, Long, Long> baf = new ConstantRecordSizeHeapBackendFactory<Integer, Long>(IntegerSerializer.INSTANCE, LongSerializer.INSTANCE, 0, 8192, lah);
      baf = new BPlusTreeIndexBackendFactory<Integer, Long, Integer, Long>(baf, nrb, IntegerToIntegerHasher.INSTANCE, lah);
      ShadowCopyTransactionalDatabase<Integer, Long, Long> db = new ShadowCopyTransactionalDatabase<Integer, Long, Long>(new SingleFileAndProxiedFileManager(new SingleFileManager(ff, tmpDirD), indff, tmpDirD), baf, false, lah);
      m_dbFiles.put(System.identityHashCode(db), new File[] { f, tmpDir, indf });
      m_databases.add(db);
    }
  }
View Full Code Here

TOP

Related Classes of org.helidb.impl.txn.sc.SingleFileAndProxiedFileManager

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.