Class CompositeShardingOptions
- java.lang.Object
-
- com.alpha.mongodb.sharding.core.configuration.ShardingOptions
-
- com.alpha.mongodb.sharding.core.configuration.DatabaseShardingOptions
-
- com.alpha.mongodb.sharding.core.configuration.CompositeShardingOptions
-
public class CompositeShardingOptions extends DatabaseShardingOptions
Composite sharding options- Author:
- SHashank Sharma
-
-
Constructor Summary
Constructors Constructor Description CompositeShardingOptions(List<String> defaultDatabaseHints, List<String> defaultCollectionHints)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultCollectionHint()DelegatedCollectionShardingOptionsgetDelegatedCollectionShardingOptions()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 CompositeShardingOptionswithIntegerStreamHints(IntStream databaseHintStream, IntStream collectionHintStream)-
Methods inherited from class com.alpha.mongodb.sharding.core.configuration.DatabaseShardingOptions
getDefaultDatabaseHint, validateDatabaseHint, withIntegerStreamHints
-
Methods inherited from class com.alpha.mongodb.sharding.core.configuration.ShardingOptions
resolveCollectionName, resolveDatabaseName
-
-
-
-
Method Detail
-
withIntegerStreamHints
public static CompositeShardingOptions withIntegerStreamHints(IntStream databaseHintStream, IntStream collectionHintStream)
-
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
-
getDelegatedCollectionShardingOptions
public DelegatedCollectionShardingOptions getDelegatedCollectionShardingOptions()
-
-