|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iquery.dataretrieval.OfflineResultSetConfiguration
public class OfflineResultSetConfiguration
Contains settings that are used to configure offline result sets.
Offline result sets are inclusive two-level caches which pre-fetch a number of rows to a temporary file on disk and keep some of these in memory for immediate access. This allows the connection to the server to be released immediately after pre-fetching. Queries are re-executed when rows not in the cache are accessed.
Since this is slower than a "live" result set, offline result sets should only be used if releasing the server connection is really needed, for example for systems supporting many concurrent users.
ConnectionConfiguration
,
RetrievalPolicy
Constructor Summary | |
---|---|
OfflineResultSetConfiguration()
Creates a new OfflineResultSetConfiguration with default settings. |
|
OfflineResultSetConfiguration(OfflineResultSetConfiguration offlineResultSetConfiguration)
Copy constructor. |
Method Summary | |
---|---|
int |
getFileBlockSize()
Returns the number of rows which will be saved on disk in the page file. |
int |
getMemoryBlockSize()
Returns the number of rows which will be cached in memory. |
boolean |
isOfflineResultSetsEnabled()
Return the configured status of offline result sets. |
void |
setBlockSizes(int memoryBlockSize,
int fileBlockSizeFactor)
Sets the number of rows to cache in memory and on disk. |
void |
setOfflineResultSetsEnabled(boolean offlineResultSetsEnabled)
Enables or disables offline result sets. |
Constructor Detail |
---|
public OfflineResultSetConfiguration()
public OfflineResultSetConfiguration(OfflineResultSetConfiguration offlineResultSetConfiguration)
Method Detail |
---|
public int getFileBlockSize()
public int getMemoryBlockSize()
public void setBlockSizes(int memoryBlockSize, int fileBlockSizeFactor)
setBlockSizes(200, 10);
memoryBlockSize
- The number of rows which will be saved in memoryfileBlockSizeFactor
- The factor of file rows to memory rowspublic boolean isOfflineResultSetsEnabled()
true
If offline result sets are enabledpublic void setOfflineResultSetsEnabled(boolean offlineResultSetsEnabled)
offlineResultSetsEnabled
- Set true to enable offline result sets.
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |