Package org.helidb.lang.hasher

Examples of org.helidb.lang.hasher.StringToBigIntegerHasher


        nr = new LruCacheNodeRepository<BigInteger, Long>(nr, m_bTreeLruNodeCacheSize);
      }
      BPlusTree<BigInteger, Long> btree = new BPlusTree<BigInteger, Long>(nr, lah);
      // Only use 7 bits of the most significant byte when hashing to
      // avoid collisions with the serialized null value
      b = new BPlusTreeIndexBackend<String, String, BigInteger, Long>(b, false, btree, new StringToBigIntegerHasher(STRING_HASH_SIZE, 7), lah);

      LoggingTransactionalDatabase<String, String, Long> db = new LoggingTransactionalDatabase<String, String, Long>(b, new ReadWritableFileAdapter(logf), StringSerializer.INSTANCE, StringSerializer.INSTANCE, lah);
      m_dbFiles.put(System.identityHashCode(db), new File[] { f, treef, logf });
      m_databases.add(db);
    }
View Full Code Here


        nr = new LruCacheNodeRepository<BigInteger, Long>(nr, m_bTreeLruNodeCacheSize);
      }
      BPlusTree<BigInteger, Long> btree = new BPlusTree<BigInteger, Long>(nr, lah);
      // Only use 7 bits of the most significant byte when hashing to
      // avoid collisions with the serialized null value
      b = new BPlusTreeIndexBackend<String, String, BigInteger, Long>(b, false, btree, new StringToBigIntegerHasher(STRING_HASH_SIZE, 7), lah);

      SimpleDatabase<String, String, Long> db = new SimpleDatabase<String, String, Long>(b, lah);
      m_dbFiles.put(System.identityHashCode(db), new File[] { f, treef });
      m_databases.add(db);
    }
View Full Code Here

        nrb = new LruCacheNodeRepositoryBuilder<BigInteger, Long>().setProxiedBuilder(nrb).setMaxCacheSize(m_bTreeLruNodeCacheSize);
      }
      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

TOP

Related Classes of org.helidb.lang.hasher.StringToBigIntegerHasher

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.