Giter Club home page Giter Club logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Oops, I uploaded incorrect versions of the tests. With the console output you 
can see that the index key is present, and even get back the recid for the key, 
but trying to get the value object returns null.

Original comment by [email protected] on 6 May 2011 at 12:39

Attachments:

from jdbm2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
I tried Base64 encoding the byte arrays first to make sure there were no 
non-ASCII characters being output, after reading the commentary for Issue 5. 
Same problem.

Also, it's non-deterministic - the read fails on a different record each time, 
so it's unlikely to do with the formatting of one of the records anyway.

The new version requires the Commons Codec jar for the Base64 encoding.

Original comment by [email protected] on 6 May 2011 at 1:32

Attachments:

from jdbm2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
JDBM is fine. You used wrong method. On 'StoreReadTest.java' line 36 should be:

 String s = index.getPrimaryValues(key).iterator().next();

Problem is that there are two methods with very similar name but different 
meaning. One of them returns primary values for _secondary key_ other for 
_primary key_. I will change method names in JDBM3. 



Original comment by [email protected] on 5 Jun 2011 at 1:57

  • Changed state: Done

from jdbm2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
What worked perfectly. Many thanks for setting me straight. This is a really 
easy to use library by the way, great work.

I can proceed with my performance tests now. I don't suppose there's any 
performance benchmark lying around ? One thing I've noticed so far is that 
under Mac OS the writes are way faster than the reads which is very odd. It's 
as expected on Windows. I'll have to get profiling...

Original comment by [email protected] on 9 Jun 2011 at 2:04

from jdbm2.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.