Class BPlusTreeParams
- java.lang.Object
-
- org.apache.jena.dboe.trans.bplustree.BPlusTreeParams
-
public final class BPlusTreeParams extends java.lang.ObjectConfiguration for a B+Tree
-
-
Field Summary
Fields Modifier and Type Field Description static intNoParentstatic java.lang.StringNSstatic java.lang.StringParamBlockSizestatic java.lang.StringParamKeyLengthstatic java.lang.StringParamOrderstatic java.lang.StringParamValueLengthstatic intRootIdstatic intRootParentstatic intUnsetParent
-
Constructor Summary
Constructors Constructor Description BPlusTreeParams(int order, int keyLen, int valLen)BPlusTreeParams(int order, org.apache.jena.dboe.base.record.RecordFactory factory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToMetaData(org.apache.jena.dboe.base.file.MetaFile mf)static intcalcBlockSize(int bpTreeOrder, org.apache.jena.dboe.base.record.RecordFactory factory)return the size of a blockstatic intcalcOrder(int blockSize, int recordLength)Return the best fit for the blocksize and the record length.static intcalcOrder(int blockSize, org.apache.jena.dboe.base.record.RecordFactory factory)Return the best fit for the blocksize and the record length.intgetCalcBlockSize()org.apache.jena.dboe.base.record.RecordFactorygetKeyFactory()intgetKeyLength()intgetMaxPtr()intgetMaxRec()intgetMinPtr()intgetMinRec()intgetOrder()intgetPtrLength()org.apache.jena.dboe.base.record.RecordFactorygetRecordFactory()intgetRecordLength()static BPlusTreeParamsreadMeta(org.apache.jena.dboe.base.file.MetaFile mf)java.lang.StringtoString()
-
-
-
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
-
RootId
public static final int RootId
- See Also:
- Constant Field Values
-
RootParent
public static final int RootParent
- See Also:
- Constant Field Values
-
NoParent
public static final int NoParent
- See Also:
- Constant Field Values
-
UnsetParent
public static final int UnsetParent
- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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()
-
-