public class SimpleFilter extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AND |
static int |
APPROX |
static int |
EQ |
static int |
GTE |
static int |
LTE |
static int |
MATCH_ALL |
static SimpleFilter |
MATCH_ALL_FILTER |
static int |
NOT |
static int |
OR |
static int |
PRESENT |
static int |
SUBSTRING |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareSubstring(List<String> pieces,
String s) |
static SimpleFilter |
convert(Map<String,Object> attrs)
Converts a attribute map to a filter.
|
String |
getName() |
int |
getOperation() |
Object |
getValue() |
static SimpleFilter |
parse(String filter) |
static List<String> |
parseSubstring(String value) |
String |
toString() |
static void |
unparseSubstring(StringBuilder sb,
List<?> pieces) |
public static final int MATCH_ALL
public static final int AND
public static final int OR
public static final int NOT
public static final int EQ
public static final int LTE
public static final int GTE
public static final int SUBSTRING
public static final int PRESENT
public static final int APPROX
public static final SimpleFilter MATCH_ALL_FILTER
public String getName()
public Object getValue()
public int getOperation()
public static SimpleFilter parse(String filter)
public static void unparseSubstring(StringBuilder sb, List<?> pieces)
public static SimpleFilter convert(Map<String,Object> attrs)
attrs
- Map of attributes to convert to a filter.Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.