java.lang.Object
org.apache.jena.tdb1.index.bplustree.BPlusTreeParams
Configuration for a B+Tree
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBPlusTreeParams(int order, int keyLen, int valLen) BPlusTreeParams(int order, RecordFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic intcalcBlockSize(int bpTreeOrder, 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, RecordFactory factory) Return the best fit for the blocksize and the record length.static voidcheckAll()intintintintintintintgetOrder()intintstatic voidinfoAll()static BPlusTreeParamstoString()
-
Field Details
-
CheckingTree
public static boolean CheckingTree -
CheckingNode
public static boolean CheckingNode -
CheckingConcurrency
public static boolean CheckingConcurrency -
NS
-
ParamOrder
-
ParamKeyLength
-
ParamValueLength
-
ParamBlockSize
-
DumpTree
public static boolean DumpTree -
Logging
public static boolean Logging -
RootId
public static final int RootId- See Also:
-
RootParent
public static final int RootParent- See Also:
-
NoParent
public static final int NoParent- See Also:
-
-
Constructor Details
-
BPlusTreeParams
public BPlusTreeParams(int order, int keyLen, int valLen) -
BPlusTreeParams
-
-
Method Details
-
checkAll
public static void checkAll() -
infoAll
public static void infoAll() -
toString
-
readMeta
-
addToMetaData
-
getOrder
public int getOrder() -
getPtrLength
public int getPtrLength() -
getRecordLength
public int getRecordLength() -
getRecordFactory
-
getKeyLength
public int getKeyLength() -
getKeyFactory
-
getCalcBlockSize
public int getCalcBlockSize() -
calcOrder
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
return the size of a block -
getMaxRec
public int getMaxRec() -
getMaxPtr
public int getMaxPtr() -
getMinRec
public int getMinRec() -
getMinPtr
public int getMinPtr()
-