public class ComposableSnapshotFilter<K,V> extends Object implements org.apache.geode.cache.snapshot.SnapshotFilter<K,V>
SnapshotFilter
,
Serialized FormModifier 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> org.apache.geode.cache.snapshot.SnapshotFilter<K,V> |
and(org.apache.geode.cache.snapshot.SnapshotFilter<K,V>... snapshotFilters)
Composes the array of SnapshotFilters into a logical boolean expression using the AND Operator.
|
protected static <K,V> org.apache.geode.cache.snapshot.SnapshotFilter<K,V> |
compose(ComposableSnapshotFilter.Operator operator,
org.apache.geode.cache.snapshot.SnapshotFilter<K,V>... snapshotFilters)
Composes the array of SnapshotFilters into a logical boolean expression using the specified Operator.
|
static <K,V> org.apache.geode.cache.snapshot.SnapshotFilter<K,V> |
or(org.apache.geode.cache.snapshot.SnapshotFilter<K,V>... snapshotFilters)
Composes the array of SnapshotFilters into a logical boolean expression using the OR Operator.
|
protected static <K,V> org.apache.geode.cache.snapshot.SnapshotFilter<K,V> compose(ComposableSnapshotFilter.Operator operator, org.apache.geode.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
,
SnapshotFilter
public static <K,V> org.apache.geode.cache.snapshot.SnapshotFilter<K,V> and(org.apache.geode.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
,
SnapshotFilter
public static <K,V> org.apache.geode.cache.snapshot.SnapshotFilter<K,V> or(org.apache.geode.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
,
SnapshotFilter
public boolean accept(Map.Entry<K,V> entry)
accept
in interface org.apache.geode.cache.snapshot.SnapshotFilter<K,V>
entry
- the Map.Entry to evaluate.ComposableSnapshotFilter.Operator
,
SnapshotFilter.accept(Map.Entry)
,
Map.Entry
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.