Package com.embabel.agent.filter
Object InMemoryPropertyFilter
-
- All Implemented Interfaces:
public class InMemoryPropertyFilterIn-memory property filter evaluation for PropertyFilter expressions against key-value maps.
Evaluates filter expressions against
Map<String, Any?>properties. This is useful as a fallback when native query support is unavailable, or for evaluating guard conditions against context state.
-
-
Field Summary
Fields Modifier and Type Field Description public final static InMemoryPropertyFilterINSTANCE
-
Method Summary
Modifier and Type Method Description final Booleanmatches(PropertyFilter filter, Map<String, Object> properties)Test if a property map matches the filter. final BooleanmatchesMetadata(PropertyFilter filter, Map<String, Object> metadata)Test if a metadata map matches the filter. final BooleanmatchesProperties(PropertyFilter filter, Map<String, Object> properties)Test if a properties map matches the filter. -
-
Method Detail
-
matches
final Boolean matches(PropertyFilter filter, Map<String, Object> properties)
Test if a property map matches the filter.
-
matchesMetadata
final Boolean matchesMetadata(PropertyFilter filter, Map<String, Object> metadata)
Test if a metadata map matches the filter. Alias for matches for readability in metadata filtering contexts.
-
matchesProperties
final Boolean matchesProperties(PropertyFilter filter, Map<String, Object> properties)
Test if a properties map matches the filter. Alias for matches for readability in property filtering contexts.
-
-
-
-