public class CardinalityEstimatorConfig extends Object
CardinalityEstimator| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ASYNC_BACKUP_COUNT
The number of async backups per estimator
|
static int |
DEFAULT_SYNC_BACKUP_COUNT
The number of sync backups per estimator
|
| Constructor and Description |
|---|
CardinalityEstimatorConfig() |
CardinalityEstimatorConfig(CardinalityEstimatorConfig config) |
CardinalityEstimatorConfig(String name) |
CardinalityEstimatorConfig(String name,
int backupCount,
int asyncBackupCount) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAsyncBackupCount()
Gets the number of synchronous backups.
|
int |
getBackupCount()
Gets the number of synchronous backups.
|
String |
getName()
Gets the name of the cardinality estimator.
|
int |
getTotalBackupCount()
Returns the total number of backups: backupCount plus asyncBackupCount.
|
CardinalityEstimatorConfig |
setAsyncBackupCount(int asyncBackupCount)
Sets the number of synchronous backups.
|
CardinalityEstimatorConfig |
setBackupCount(int backupCount)
Sets the number of synchronous backups.
|
CardinalityEstimatorConfig |
setName(String name)
Sets the name of the cardinality estimator.
|
String |
toString() |
public static final int DEFAULT_SYNC_BACKUP_COUNT
public static final int DEFAULT_ASYNC_BACKUP_COUNT
public CardinalityEstimatorConfig()
public CardinalityEstimatorConfig(String name)
public CardinalityEstimatorConfig(String name, int backupCount, int asyncBackupCount)
public CardinalityEstimatorConfig(CardinalityEstimatorConfig config)
public String getName()
public CardinalityEstimatorConfig setName(String name)
name - The name of the estimator.public int getBackupCount()
public CardinalityEstimatorConfig setBackupCount(int backupCount)
backupCount - the number of synchronous backups to setIllegalArgumentException - if backupCount smaller than 0,
or larger than the maximum number of backup
or the sum of the backups and async backups is larger than the maximum number of backupssetAsyncBackupCount(int),
getBackupCount()public int getAsyncBackupCount()
public CardinalityEstimatorConfig setAsyncBackupCount(int asyncBackupCount)
asyncBackupCount - the number of synchronous backups to setIllegalArgumentException - if backupCount smaller than 0,
or larger than the maximum number of backup
or the sum of the backups and async backups is larger than the maximum number of backupssetAsyncBackupCount(int),
getBackupCount()public int getTotalBackupCount()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.