Class CollectionShardingOptions

    • Constructor Detail

      • CollectionShardingOptions

        public CollectionShardingOptions​(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