|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.multibuffer.BufferNeeds
public class BufferNeeds
A class containing static methods, which estimate the optimal number of buffers to allocate for a scan.
| Constructor Summary | |
|---|---|
BufferNeeds()
|
|
| Method Summary | |
|---|---|
static int |
bestFactor(int size)
This method considers the various factors of the specified output size (in blocks), and returns the highest factor that is less than the number of available buffers. |
static int |
bestRoot(int size)
This method considers the various roots of the specified output size (in blocks), and returns the highest root that is less than the number of available buffers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferNeeds()
| Method Detail |
|---|
public static int bestRoot(int size)
size - the size of the output file
public static int bestFactor(int size)
size - the size of the output file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||