Interface PojoPathFilter
-
public interface PojoPathFilterDefines a set of paths that are of importance, so that they can be detected at runtime when given a set of paths.Used in particular in dirty checking, see
PojoImplicitReindexingResolver.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BitSetfilter(int[] pathOrdinals)For each path ordinal in the given array, sets the corresponding ordinal in a bitset if the path is accepted by the filter, and return that bitset ornullif none of the paths are relevant.BitSetfilter(String path)Sets the ordinal corresponding to the given path in a bitset if the path is accepted by the filter, and return that bitset ornullif the path is not accepted by the filter.BitSetfilter(String... paths)For each path in the given array, sets the corresponding ordinal in a bitset if the path is accepted by the filter, and return that bitset ornullif none of the paths are relevant.booleantest(BitSet pathSelection)Determines if any path in the given set of paths of is accepted by this filter.
-
-
-
Method Detail
-
test
boolean test(BitSet pathSelection)
Determines if any path in the given set of paths of is accepted by this filter.This method is optimized to be called very often.
- Parameters:
pathSelection- ABitSetrepresenting a set of paths using the path ordinals. Nevernull.- Returns:
trueif any path in the given set is accepted by this filter,falseotherwise.
-
filter
BitSet filter(String path)
Sets the ordinal corresponding to the given path in a bitset if the path is accepted by the filter, and return that bitset ornullif the path is not accepted by the filter.- Parameters:
path- The string representations of a path. Nevernull.- Returns:
- A
BitSetwhose only set bit is the ordinal of the given path if the path is accepted by this filter, ornullif the path is not accepted by this filter.
-
filter
BitSet filter(String... paths)
For each path in the given array, sets the corresponding ordinal in a bitset if the path is accepted by the filter, and return that bitset ornullif none of the paths are relevant.- Parameters:
paths- A array of string representations of paths. Nevernull.- Returns:
- A
BitSetrepresenting all paths that are included inpathsand are accepted by this filter.nullif none of the paths is accepted by this filter.
-
filter
BitSet filter(int[] pathOrdinals)
For each path ordinal in the given array, sets the corresponding ordinal in a bitset if the path is accepted by the filter, and return that bitset ornullif none of the paths are relevant.- Parameters:
pathOrdinals- A array of path ordinals. Nevernull.- Returns:
- A
BitSetrepresenting all paths that are included inpathsand are accepted by this filter.nullif none of the paths is accepted by this filter.
-
-