Class BPlusTreeParams
java.lang.Object
org.apache.jena.dboe.trans.bplustree.BPlusTreeParams
Configuration for a B+Tree
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBPlusTreeParams(int order, int keyLen, int valLen) BPlusTreeParams(int order, org.apache.jena.dboe.base.record.RecordFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToMetaData(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.intorg.apache.jena.dboe.base.record.RecordFactoryintintintintintintgetOrder()intorg.apache.jena.dboe.base.record.RecordFactoryintstatic BPlusTreeParamsreadMeta(org.apache.jena.dboe.base.file.MetaFile mf) toString()
-
Field Details
-
NS
-
ParamOrder
-
ParamKeyLength
-
ParamValueLength
-
ParamBlockSize
-
RootId
public static final int RootId- See Also:
-
RootParent
public static final int RootParent- See Also:
-
NoParent
public static final int NoParent- See Also:
-
UnsetParent
public static final int UnsetParent- See Also:
-
-
Constructor Details
-
BPlusTreeParams
public BPlusTreeParams(int order, int keyLen, int valLen) -
BPlusTreeParams
public BPlusTreeParams(int order, org.apache.jena.dboe.base.record.RecordFactory factory)
-
-
Method Details
-
toString
-
readMeta
-
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()
-