|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NodeSizeStrategy
The node size strategy determines the size of a node in a B+ Tree when it is
stored in a file by the FileBackedNodeRepository. A node is either a
leaf node containing data records or a non-leaf node containing pointers to
child nodes.
Implementations of this interface should be immutable.
| Method Summary | |
|---|---|
int |
getMaxNumberOfRecordsPerNode(int nodeHeaderSize,
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 nodeHeaderSize,
int recordSize,
long pos)
Given the supplied size of the node header and records, how many bytes will a node occupy? |
| Method Detail |
|---|
int getMaxNumberOfRecordsPerNode(int nodeHeaderSize,
int recordSize,
long pos)
nodeHeaderSize - The size of the node header.recordSize - The size of a record.pos - The position of the node in the file.
int getNodeSize(int nodeHeaderSize,
int recordSize,
long pos)
nodeHeaderSize - 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 | ||||||||