Class CollectionShardingOptions
- java.lang.Object
-
- com.alpha.mongodb.sharding.core.configuration.ShardingOptions
-
- com.alpha.mongodb.sharding.core.configuration.CollectionShardingOptions
-
- Direct Known Subclasses:
DelegatedCollectionShardingOptions
public class CollectionShardingOptions extends ShardingOptions
Collection sharding options- Author:
- SHashank Sharma
-
-
Constructor Summary
Constructors Constructor Description CollectionShardingOptions(List<String> defaultCollectionHints)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultCollectionHint()voidsetCollectionHintsMapList(Map<String,List<String>> collectionHintsMapList)booleanvalidateCollectionHint(String collectionName, String hint)Validate if a particular hint is valid for the sharding options or not.static CollectionShardingOptionswithIntegerStreamHints(IntStream stream)-
Methods inherited from class com.alpha.mongodb.sharding.core.configuration.ShardingOptions
resolveCollectionName, resolveDatabaseName, validateDatabaseHint
-
-
-
-
Method Detail
-
withIntegerStreamHints
public static CollectionShardingOptions withIntegerStreamHints(IntStream stream)
-
getDefaultCollectionHint
public String getDefaultCollectionHint()
-
setCollectionHintsMapList
public void setCollectionHintsMapList(Map<String,List<String>> collectionHintsMapList)
-
validateCollectionHint
public boolean validateCollectionHint(String collectionName, String hint)
Description copied from class:ShardingOptionsValidate if a particular hint is valid for the sharding options or not.- Overrides:
validateCollectionHintin classShardingOptions- Parameters:
collectionName- Base Collection Namehint- hint- Returns:
- true if the hint passed is valid
-
-