Class BPlusTreeParams


  • public final class BPlusTreeParams
    extends java.lang.Object
    Configuration for a B+Tree
    • Field Detail

      • NS

        public static final java.lang.String NS
      • ParamOrder

        public static final java.lang.String ParamOrder
      • ParamKeyLength

        public static final java.lang.String ParamKeyLength
      • ParamValueLength

        public static final java.lang.String ParamValueLength
      • ParamBlockSize

        public static final java.lang.String ParamBlockSize
    • Constructor Detail

      • BPlusTreeParams

        public BPlusTreeParams​(int order,
                               int keyLen,
                               int valLen)
      • BPlusTreeParams

        public BPlusTreeParams​(int order,
                               org.apache.jena.dboe.base.record.RecordFactory factory)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • readMeta

        public static BPlusTreeParams readMeta​(org.apache.jena.dboe.base.file.MetaFile mf)
      • addToMetaData

        public void addToMetaData​(org.apache.jena.dboe.base.file.MetaFile mf)
      • getOrder

        public int getOrder()
      • getPtrLength

        public int getPtrLength()
      • getRecordLength

        public int getRecordLength()
      • getRecordFactory

        public org.apache.jena.dboe.base.record.RecordFactory getRecordFactory()
      • getKeyLength

        public int getKeyLength()
      • getKeyFactory

        public org.apache.jena.dboe.base.record.RecordFactory getKeyFactory()
      • getCalcBlockSize

        public int getCalcBlockSize()
      • calcOrder

        public static int calcOrder​(int blockSize,
                                    org.apache.jena.dboe.base.record.RecordFactory factory)
        Return the best fit for the blocksize and the record length. Knows about block header space.
      • calcOrder

        public static int calcOrder​(int blockSize,
                                    int recordLength)
        Return the best fit for the blocksize and the record length. Knows about block header space.
      • calcBlockSize

        public static int calcBlockSize​(int bpTreeOrder,
                                        org.apache.jena.dboe.base.record.RecordFactory factory)
        return the size of a block
      • getMaxRec

        public int getMaxRec()
      • getMaxPtr

        public int getMaxPtr()
      • getMinRec

        public int getMinRec()
      • getMinPtr

        public int getMinPtr()