|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.helidb.util.bplus.FixedSizeNodeSizeStrategy
public class FixedSizeNodeSizeStrategy
This node size strategy gives a fixed node size.
| Constructor Summary | |
|---|---|
FixedSizeNodeSizeStrategy(int nodeSize)
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 valueSize,
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 FixedSizeNodeSizeStrategy(int nodeSize)
nodeSize - The node size, in bytes.| Method Detail |
|---|
public int getNodeSize(int headerSize,
int valueSize,
long pos)
NodeSizeStrategy
getNodeSize in interface NodeSizeStrategyheaderSize - The size of the node header.valueSize - The size of a record.pos - The position of the node in the file.
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||