|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.DiskOrderedCursorConfig
public class DiskOrderedCursorConfig
Specifies the attributes of a DiskOrderedCursor.
Field Summary | |
---|---|
static DiskOrderedCursorConfig |
DEFAULT
Default configuration used if null is passed to methods that create a cursor. |
Constructor Summary | |
---|---|
DiskOrderedCursorConfig()
An instance created using the default constructor is initialized with the system's default settings. |
Method Summary | |
---|---|
DiskOrderedCursorConfig |
clone()
Returns a copy of this configuration object. |
long |
getInternalMemoryLimit()
Returns the maximum amount of non JE Cache Memory that the DiskOrderedScan can use at one time. |
boolean |
getKeysOnly()
Returns true if the DiskOrderedCursor is configured to return only keys. |
long |
getLSNBatchSize()
Returns the maximum number of LSNs to be sorted that this DiskOrderedCursor is configured for. |
long |
getMaxSeedMillisecs()
Returns the maximum time (in milliseconds) to spend seeding the Disk Ordered Scan. |
long |
getMaxSeedNodes()
Returns the maximum number of internal nodes to use to seed the Disk Ordered Scan. |
int |
getQueueSize()
Returns the maximum number of entries in the queue before the DiskOrderedCursor producer thread blocks. |
DiskOrderedCursorConfig |
setInternalMemoryLimit(long internalMemoryLimit)
Set the maximum amount of non JE Cache Memory that the DiskOrderedScan can use at one time. |
DiskOrderedCursorConfig |
setKeysOnly(boolean keysOnly)
Specify whether the DiskOrderedCursor should return only the key or key + data. |
DiskOrderedCursorConfig |
setLSNBatchSize(long lsnBatchSize)
Set the maximum number of LSNs to gather and sort at any one time. |
DiskOrderedCursorConfig |
setMaxSeedMillisecs(long maxSeedMillisecs)
Set the maximum time in milliseconds to spend seeding the Disk Ordered Scan. |
DiskOrderedCursorConfig |
setMaxSeedNodes(long maxSeedNodes)
Set the maximum number of internal nodes to use to seed the Disk Ordered Scan. |
DiskOrderedCursorConfig |
setQueueSize(int queueSize)
Set the queue size for entries being passed between the DiskOrderedCursor producer thread and the application's consumer thread. |
String |
toString()
Returns the values for each configuration attribute. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DiskOrderedCursorConfig DEFAULT
Constructor Detail |
---|
public DiskOrderedCursorConfig()
Method Detail |
---|
public DiskOrderedCursorConfig setKeysOnly(boolean keysOnly)
keysOnly
- If true, return only keys from this cursor.
public boolean getKeysOnly()
public DiskOrderedCursorConfig setLSNBatchSize(long lsnBatchSize)
lsnBatchSize
- the maximum number of LSNs to accumulate and sort
per batch.
public long getLSNBatchSize()
public DiskOrderedCursorConfig setInternalMemoryLimit(long internalMemoryLimit)
internalMemoryLimit
- the maximum number of non JE Cache bytes to
use.
public long getInternalMemoryLimit()
public DiskOrderedCursorConfig setQueueSize(int queueSize)
queueSize
- the maximum number of entries the queue can hold before
the producer thread blocks.
public int getQueueSize()
public DiskOrderedCursorConfig setMaxSeedMillisecs(long maxSeedMillisecs)
maxSeedMillisecs
- the maximum milliseconds to spend seeding the
Disk Ordered Scan.
public long getMaxSeedMillisecs()
public DiskOrderedCursorConfig setMaxSeedNodes(long maxSeedNodes)
maxSeedNodes
- the maximum number of internal nodes to use to seed
the Disk Ordered Scan.
public long getMaxSeedNodes()
public DiskOrderedCursorConfig clone()
clone
in class Object
public String toString()
toString
in class Object
|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |