Class Filters


  • public final class Filters
    extends Object
    A utility that is contains various filters for acceptable database names, CollectionIds, and fields.
    Author:
    Randall Hauch
    • Constructor Detail

      • Filters

        public Filters​(Configuration config)
        Create an instance of the filters.
        Parameters:
        config - the configuration; may not be null
    • Method Detail

      • databaseFilter

        public Predicate<String> databaseFilter()
        Get the predicate function that determines whether the given database is to be included.
        Returns:
        the database filter; never null
      • collectionFilter

        public Predicate<CollectionId> collectionFilter()
        Get the predicate function that determines whether the given collection is to be included.
        Returns:
        the collection filter; never null
      • fieldFilterFor

        public FieldSelector.FieldFilter fieldFilterFor​(CollectionId id)
        Get the field filter for a given collection identifier.
        Parameters:
        id - the collection identifier, never null
        Returns:
        the field filter; never null
      • isNotBuiltIn

        protected boolean isNotBuiltIn​(CollectionId id)