Class BPT


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

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

      Constructors 
      Constructor Description
      BPT()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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 Detail

      • 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 Detail

      • BPT

        public BPT()
    • Method Detail

      • 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.