public final class Filters extends Object
CollectionIds, and fields.| Modifier and Type | Field and Description |
|---|---|
protected static Set<String> |
BUILT_IN_DB_NAMES |
private Predicate<CollectionId> |
collectionFilter |
private Predicate<String> |
databaseFilter |
private FieldSelector |
fieldSelector |
| Constructor and Description |
|---|
Filters(Configuration config)
Create an instance of the filters.
|
| Modifier and Type | Method and Description |
|---|---|
Predicate<CollectionId> |
collectionFilter()
Get the predicate function that determines whether the given collection is to be included.
|
Predicate<String> |
databaseFilter()
Get the predicate function that determines whether the given database is to be included.
|
FieldSelector.FieldFilter |
fieldFilterFor(CollectionId id)
Get the field filter for a given collection identifier.
|
protected boolean |
isNotBuiltIn(CollectionId id) |
private final Predicate<CollectionId> collectionFilter
private final FieldSelector fieldSelector
public Filters(Configuration config)
config - the configuration; may not be nullpublic Predicate<String> databaseFilter()
public Predicate<CollectionId> collectionFilter()
public FieldSelector.FieldFilter fieldFilterFor(CollectionId id)
id - the collection identifier, never nullprotected boolean isNotBuiltIn(CollectionId id)
Copyright © 2021 JBoss by Red Hat. All rights reserved.