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 int |
NOT |
static int |
OR |
static int |
PRESENT |
static int |
SUBSTRING |
Constructor and Description |
---|
SimpleFilter(String attr,
Object value,
int op) |
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 String |
unparseSubstring(List<String> 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 String getName()
public Object getValue()
public int getOperation()
public static SimpleFilter parse(String filter)
public static SimpleFilter convert(Map<String,Object> attrs)
attrs
- Map of attributes to convert to a filter.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.