public static interface Criteria.BitwiseCriteriaOperators
$bitsAllClear, $bitsAllSet,... for usage with Criteria.bits() and Query.| Modifier and Type | Method and Description |
|---|---|
Criteria |
allClear(int numericBitmask)
Creates a criterion using $bitsAllClear matching documents where all given bit positions are clear
(i.e. 0).
|
Criteria |
allClear(List<Integer> positions)
Creates a criterion using $bitsAllClear matching documents where all given bit positions are clear
(i.e. 0).
|
Criteria |
allClear(String bitmask)
Creates a criterion using $bitsAllClear matching documents where all given bit positions are clear
(i.e. 0).
|
Criteria |
allSet(int numericBitmask)
Creates a criterion using $bitsAllSet matching documents where all given bit positions are set (i.e.
1).
|
Criteria |
allSet(List<Integer> positions)
Creates a criterion using $bitsAllSet matching documents where all given bit positions are set (i.e.
1).
|
Criteria |
allSet(String bitmask)
Creates a criterion using $bitsAllSet matching documents where all given bit positions are set (i.e.
1).
|
Criteria |
anyClear(int numericBitmask)
Creates a criterion using $bitsAllClear matching documents where any given bit positions are clear
(i.e. 0).
|
Criteria |
anyClear(List<Integer> positions)
Creates a criterion using $bitsAllClear matching documents where any given bit positions are clear
(i.e. 0).
|
Criteria |
anyClear(String bitmask)
Creates a criterion using $bitsAllClear matching documents where any given bit positions are clear
(i.e. 0).
|
Criteria |
anySet(int numericBitmask)
Creates a criterion using $bitsAllSet matching documents where any given bit positions are set (i.e.
1).
|
Criteria |
anySet(List<Integer> positions)
Creates a criterion using $bitsAnySet matching documents where any given bit positions are set (i.e.
1).
|
Criteria |
anySet(String bitmask)
Creates a criterion using $bitsAnySet matching documents where any given bit positions are set (i.e.
1).
|
Criteria allClear(int numericBitmask)
numericBitmask - non-negative numeric bitmask.Criteria.Criteria allClear(String bitmask)
bitmask - string representation of a bitmask that will be converted to its base64 encoded Binary
representation. Must not be null nor empty.Criteria.IllegalArgumentException - when bitmask is null or empty.Criteria allClear(List<Integer> positions)
positions - list of non-negative integer positions. Positions start at 0 from the least significant bit.
Must not be null nor contain null elements.Criteria.IllegalArgumentException - when positions is null or contains null elements.Criteria allSet(int numericBitmask)
numericBitmask - non-negative numeric bitmask.Criteria.Criteria allSet(String bitmask)
bitmask - string representation of a bitmask that will be converted to its base64 encoded Binary
representation. Must not be null nor empty.Criteria.IllegalArgumentException - when bitmask is null or empty.Criteria allSet(List<Integer> positions)
positions - list of non-negative integer positions. Positions start at 0 from the least significant bit.
Must not be null nor contain null elements.Criteria.IllegalArgumentException - when positions is null or contains null elements.Criteria anyClear(int numericBitmask)
numericBitmask - non-negative numeric bitmask.Criteria.Criteria anyClear(String bitmask)
bitmask - string representation of a bitmask that will be converted to its base64 encoded Binary
representation. Must not be null nor empty.Criteria.IllegalArgumentException - when bitmask is null or empty.Criteria anyClear(List<Integer> positions)
positions - list of non-negative integer positions. Positions start at 0 from the least significant bit.
Must not be null nor contain null elements.Criteria.IllegalArgumentException - when positions is null or contains null elements.Criteria anySet(int numericBitmask)
numericBitmask - non-negative numeric bitmask.Criteria.Criteria anySet(String bitmask)
bitmask - string representation of a bitmask that will be converted to its base64 encoded Binary
representation. Must not be null nor empty.Criteria.IllegalArgumentException - when bitmask is null or empty.Criteria anySet(List<Integer> positions)
positions - list of non-negative integer positions. Positions start at 0 from the least significant bit.
Must not be null nor contain null elements.Criteria.IllegalArgumentException - when positions is null or contains null elements.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.