|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.helidb.util.bplus.NumberOfRecordsNodeSizeStrategy
public class NumberOfRecordsNodeSizeStrategy
This NodeSizeStrategy uses a fixed number of records per node.
| Constructor Summary | |
|---|---|
NumberOfRecordsNodeSizeStrategy(int noOfRecords)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getMaxNumberOfRecordsPerNode(int headerSize,
int recordSize,
long pos)
Given the supplied size of the node header and records, how many records will fit in a node? |
int |
getNodeSize(int headerSize,
int recordSize,
long pos)
Given the supplied size of the node header and records, how many bytes will a node occupy? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumberOfRecordsNodeSizeStrategy(int noOfRecords)
throws IllegalArgumentException
noOfRecords - The number of records to store in a node.
IllegalArgumentException - If the number of records is less than
two.| Method Detail |
|---|
public int getMaxNumberOfRecordsPerNode(int headerSize,
int recordSize,
long pos)
NodeSizeStrategy
getMaxNumberOfRecordsPerNode in interface NodeSizeStrategyheaderSize - The size of the node header.recordSize - The size of a record.pos - The position of the node in the file.
public int getNodeSize(int headerSize,
int recordSize,
long pos)
NodeSizeStrategy
getNodeSize in interface NodeSizeStrategyheaderSize - The size of the node header.recordSize - The size of a record.pos - The position of the node in the file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||