Class CompositeShardingOptions


  • public class CompositeShardingOptions
    extends DatabaseShardingOptions
    Composite sharding options
    Author:
    SHashank Sharma
    • Constructor Detail

      • CompositeShardingOptions

        public CompositeShardingOptions​(List<String> defaultDatabaseHints,
                                        List<String> defaultCollectionHints)
    • Method Detail

      • 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 class ShardingOptions
        Parameters:
        collectionName - Base Collection Name
        hint - hint
        Returns:
        true if the hint passed is valid