Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1988

Separating B+ tree into different Node representations.

    XMLWordPrintableJSON

Details

    Description

      In a project to optimize the indexing, I am trying to have 4 indexes, one for each Node type (variable, literal, URI and blank). To implement this, I added 4 copies of the nodeHashToId Index instance in the NodeTableNative class. Then, for every operation on the nodeHashToId, for example using containsNode() in the NodeTableNative class, I first check the type of Node given as parameter and then check for existence in the appropriate nodeHashToId copy.

      Now, for some reason I get a NullPointerException when running the tests. Many of these exceptions appear in the BufferChannelFile class in the size() method because the call to file.channel() return null.

      My question is then, is NodeTableNative__ even the right place to implement this optimization, and second, if it is the right place to implement, can you help me understand why this exception is thrown?

      Attachments

        1. NodeTableNative.java
          10 kB
          Martin Pekár

        Activity

          People

            andy Andy Seaborne
            MrPekar Martin Pekár
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: