public class ComposableSnapshotFilter<K,V> extends Object implements com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V>
SnapshotFilter,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
protected static class |
ComposableSnapshotFilter.Operator
Operator is an enumeration of logical operators (AND, OR) used to compose SnapshotFilters
into a boolean expression.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Map.Entry<K,V> entry)
Determines whether the following Map Entry is accepted by this composed SnapshotFilter implementation.
|
static <K,V> com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V> |
and(com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V>... snapshotFilters)
Composes the array of SnapshotFilters into a logical boolean expression using the AND Operator.
|
protected static <K,V> com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V> |
compose(ComposableSnapshotFilter.Operator operator,
com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V>... snapshotFilters)
Composes the array of SnapshotFilters into a logical boolean expression using the specified Operator.
|
static <K,V> com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V> |
or(com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V>... snapshotFilters)
Composes the array of SnapshotFilters into a logical boolean expression using the OR Operator.
|
protected static <K,V> com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V> compose(ComposableSnapshotFilter.Operator operator, com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V>... snapshotFilters)
K - the class type of the SnapshotFilter key.V - the class type of the SnapshotFilter value.operator - the logical operator used to compose the SnapshotFilters.snapshotFilters - the array of SnapshotFilters to compose into a logical boolean expression
using the Operator.ComposableSnapshotFilter.Operator,
SnapshotFilterpublic static <K,V> com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V> and(com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V>... snapshotFilters)
K - the class type of the SnapshotFilter key.V - the class type of the SnapshotFilter value.snapshotFilters - the array of SnapshotFilters to compose into a logical boolean expression
using the AND Operator.ComposableSnapshotFilter.Operator.AND,
SnapshotFilterpublic static <K,V> com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V> or(com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V>... snapshotFilters)
K - the class type of the SnapshotFilter key.V - the class type of the SnapshotFilter value.snapshotFilters - the array of SnapshotFilters to compose into a logical boolean expression
using the OR Operator.ComposableSnapshotFilter.Operator.OR,
SnapshotFilterpublic boolean accept(Map.Entry<K,V> entry)
accept in interface com.gemstone.gemfire.cache.snapshot.SnapshotFilter<K,V>entry - the Map.Entry to evaluate.ComposableSnapshotFilter.Operator,
SnapshotFilter.accept(Map.Entry),
Map.Entry