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 String
getDefaultCollectionHint()
void
setCollectionHintsMapList(Map<String,List<String>> collectionHintsMapList)
boolean
validateCollectionHint(String collectionName, String hint)
Validate if a particular hint is valid for the sharding options or not.static CollectionShardingOptions
withIntegerStreamHints(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:ShardingOptions
Validate if a particular hint is valid for the sharding options or not.- Overrides:
validateCollectionHint
in classShardingOptions
- Parameters:
collectionName
- Base Collection Namehint
- hint- Returns:
- true if the hint passed is valid
-
-