java.lang.Object
org.apache.jena.dboe.trans.bplustree.BPT

public final class BPT extends Object
B+Tree assist functions
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static boolean
     
    static boolean
     
    static boolean
    Dump before and after top level update operations
    static boolean
    Enable forces promotion of blocks; otherwise blocks are promoted as needed.
    static boolean
     
    static boolean
    Whether to duplicate a nodes block on a promotion call if forcePromoteModes=true
    static boolean
    Whether to duplicate a records block on a promotion call if forcePromoteModes=true
  • Constructor Summary

    Constructors
    Constructor
    Description
    BPT()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    checking(boolean onOrOff)
    Enable detailed internal consistency checking
    static BPlusTree
    createRootOnlyBPTree(BPlusTreeParams bptParams, org.apache.jena.dboe.base.file.BufferChannel bptState, org.apache.jena.dboe.base.block.BlockMgr blkMgrNodes, org.apache.jena.dboe.base.block.BlockMgr blkMgrRecords)
    The initial tree is a single root node with no records block below it.
    static void
    infoAll(boolean onOrOff)
    Output a lot of detailed information.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • Logging

      public static boolean Logging
    • forcePromoteModes

      public static boolean forcePromoteModes
      Enable forces promotion of blocks; otherwise blocks are promoted as needed.
    • promoteDuplicateRecords

      public static boolean promoteDuplicateRecords
      Whether to duplicate a records block on a promotion call if forcePromoteModes=true
    • promoteDuplicateNodes

      public static boolean promoteDuplicateNodes
      Whether to duplicate a nodes block on a promotion call if forcePromoteModes=true
    • CheckingNode

      public static boolean CheckingNode
    • CheckingConcurrency

      public static boolean CheckingConcurrency
    • DumpTree

      public static boolean DumpTree
      Dump before and after top level update operations
  • Constructor Details

    • BPT

      public BPT()
  • Method Details

    • checking

      public static void checking(boolean onOrOff)
      Enable detailed internal consistency checking
    • infoAll

      public static void infoAll(boolean onOrOff)
      Output a lot of detailed information.
    • createRootOnlyBPTree

      public static BPlusTree createRootOnlyBPTree(BPlusTreeParams bptParams, org.apache.jena.dboe.base.file.BufferChannel bptState, org.apache.jena.dboe.base.block.BlockMgr blkMgrNodes, org.apache.jena.dboe.base.block.BlockMgr blkMgrRecords)
      The initial tree is a single root node with no records block below it. It is an illegal tree. We make it by creating a real tree, deleting and freeing the records block from the root, then resetting the records block manager. This is to avoid having specialized creating code in BPlusTreeFactory solely for the rewriter.