Package org.helidb.impl.txn.sc

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


      if (m_lruCacheSize > 0)
      {
        nrb = new LruCacheNodeRepositoryBuilder<Integer, Long>().setProxiedBuilder(nrb).setMaxCacheSize(m_lruCacheSize);
      }
      DatabaseBackendFactory<Integer, Long, KeyAndValue<Integer, Long>> baf = new ConstantRecordSizeBPlusTreeBackendFactory<Integer, Long>(nrb, lah);
      ShadowCopyTransactionalDatabase<Integer, Long, KeyAndValue<Integer, Long>> db = new ShadowCopyTransactionalDatabase<Integer, Long, KeyAndValue<Integer, Long>>(new SingleFileManager(ff, tmpDirD), baf, false, lah);
      m_dbFiles.put(System.identityHashCode(db), new File[] { f, tmpDir });
      m_databases.add(db);
    }
  }
View Full Code Here


      ReadWritableFile ff = new ReadWritableFileAdapter(f);
      File tmpDir = FileSupport.createTempDirectory();
      Directory tmpDirD = new FSRWFileSystemBuilder().setRoot(tmpDir).create().getRootDirectory();

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

      ReadWritableFile ff = new ReadWritableFileAdapter(f);
      File tmpDir = FileSupport.createTempDirectory();
      Directory tmpDirD = new FSRWFileSystemBuilder().setRoot(tmpDir).create().getRootDirectory();

      DatabaseBackendFactory<String, String, Long> baf = new HeapBackendFactory<String, String>(StringSerializer.INSTANCE, StringSerializer.INSTANCE, lah);
      ShadowCopyTransactionalDatabase<String, String, Long> db = new ShadowCopyTransactionalDatabase<String, String, Long>(new SingleFileManager(ff, tmpDirD), baf, false, lah);
      m_dbFiles.put(System.identityHashCode(db), new File[] { f, tmpDir });
      m_databases.add(db);
    }
  }
View Full Code Here

      }
      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.SingleFileManager

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.