Package es.bsc.dataclay.util.filtering
Class ConditionParser
- java.lang.Object
-
- es.bsc.dataclay.util.filtering.ConditionParser
-
public class ConditionParser extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONDITION_PARTS_DELIMITER
static String
CONDITIONS_AND_DELIMITER
static String
CONDITIONS_AND_DELIMITER_PATTERN
static String
CONDITIONS_OR_DELIMITER
static String
CONDITIONS_OR_DELIMITER_PATTERN
-
Constructor Summary
Constructors Constructor Description ConditionParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Predicate
asAndPredicate(String queryFilter)
static Predicate
asOrOfAndsPredicate(String queryFilter)
static List<Condition>
parseAnds(String queryFilter)
Builder for and conditions.static List<List<Condition>>
parseOrsOfAnds(String queryFilter)
Builder for or separated and conditions.
-
-
-
Field Detail
-
CONDITIONS_OR_DELIMITER
public static final String CONDITIONS_OR_DELIMITER
- See Also:
- Constant Field Values
-
CONDITIONS_AND_DELIMITER
public static final String CONDITIONS_AND_DELIMITER
- See Also:
- Constant Field Values
-
CONDITIONS_OR_DELIMITER_PATTERN
public static final String CONDITIONS_OR_DELIMITER_PATTERN
-
CONDITIONS_AND_DELIMITER_PATTERN
public static final String CONDITIONS_AND_DELIMITER_PATTERN
-
CONDITION_PARTS_DELIMITER
public static final String CONDITION_PARTS_DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseOrsOfAnds
public static List<List<Condition>> parseOrsOfAnds(String queryFilter)
Builder for or separated and conditions.- Parameters:
queryFilter
- filter to be parsed- Returns:
- a new list of and queries (list of conditions per query)
-
parseAnds
public static List<Condition> parseAnds(String queryFilter)
Builder for and conditions.- Parameters:
queryFilter
- filter to be parsed- Returns:
- a list of and condition objects with checked operation
-
-