The ScanPolicy type exposes the following members.
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
![]() | ScanPolicy | Initializes a new instance of the ScanPolicy class |
Fields
Name | Description | |
---|---|---|
![]() | allowProleReads |
Allow read operations to use replicated data partitions instead of master
partition. By default, both read and write operations are directed to the
master partition.
(Inherited from Policy.)This variable is currently only used in batch read/exists operations. For batch, this variable should only be set to true when the replication factor is greater than or equal to the number of nodes in the cluster. |
![]() | concurrentNodes |
Issue scan requests in parallel or serially.
|
![]() | failOnClusterChange |
Terminate scan if cluster in fluctuating state.
|
![]() | includeBinData |
Indicates if bin data is retrieved. If false, only record digests are retrieved.
|
![]() | maxConcurrentNodes |
Maximum number of concurrent requests to server nodes at any point in time.
If there are 16 nodes in the cluster and maxConcurrentNodes is 8, then scan requests
will be made to 8 nodes in parallel. When a scan completes, a new scan request will
be issued until all 16 nodes have been scanned.
This field is only relevant when concurrentNodes is true. Default (0) is to issue requests to all server nodes in parallel. |
![]() | maxRetries |
Maximum number of retries before aborting the current transaction.
A retry is attempted when there is a network error other than timeout.
If maxRetries is exceeded, the abort will occur even if the timeout
has not yet been exceeded. The default number of retries is 2.
(Inherited from Policy.) |
![]() | priority |
Priority of request relative to other transactions.
Currently, only used for scans.
(Inherited from Policy.) |
![]() | scanPercent |
Percent of data to scan. Valid integer range is 1 to 100.
Default is 100.
|
![]() | sleepBetweenRetries |
Milliseconds to sleep between retries if a transaction fails and the
timeout was not exceeded. The default sleep between retries is 500 ms.
(Inherited from Policy.) |
![]() | timeout |
Transaction timeout in milliseconds.
This timeout is used to set the socket timeout and is also sent to the
server along with the transaction in the wire protocol.
Default to no timeout (0).
(Inherited from Policy.) |
See Also