Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-3311

No mechanism to transparently engage BTreeManager for flat repositories



      For someone to enjoy the benefits of the BTreeManager to map between an external, flat path and an internally-branching tree, he must use jackrabbit-specific classes to achieve it. This is is undesirable. It would be better if, through configuration, he could specify that his paths are likely flat and Jackrabbit would return implementations of the Node interface that would interact with the BTreeManager internally so that the application code could remain agnostic of the internal challenges of dealing with large numbers of child nodes.

      I've attached NodeWrapper.java which is a preliminary attempt at adapting the Node interface to the BTreeManager. In practice, however, I found that if the returned, wrapped Nodes were interrogated for their path, they would return the internal, rather than external, paths. Without an approach to address this problem, I abandoned testing.

      I would not have a problem with an assumption that the configuration option must be chosen at repository creation time and must not be changed thereafter.

      1. NodeWrapper.java
        21 kB
        David Hausladen


        Michael Dürig made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Michael Dürig made changes -
        Assignee Michael Dürig [ mduerig ]
        Michael Dürig made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        David Hausladen made changes -
        Field Original Value New Value
        Attachment NodeWrapper.java [ 12527469 ]
        David Hausladen created issue -


          • Assignee:
            Michael Dürig
            David Hausladen
          • Votes:
            0 Vote for this issue
            3 Start watching this issue


            • Created: