public class DataFilter extends Object
| 构造器和说明 |
|---|
DataFilter() |
DataFilter(String tableFields)
Initialize the filter using formatted string.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addTablesFields(String tableFields)
Add more filter information after initializing, note that the user should
make it consistent to the formatted parameters.
|
List<String> |
getColNames(String db,
String tb) |
boolean |
isColInArray(String col,
List<String> s) |
void |
putColNames(String db,
String tb,
List<String> cols) |
void |
setBranchDb(String db)
The current version uses topic instead of dbname, so use the
method to be compatible with the older version.
|
String |
toString() |
public DataFilter()
public DataFilter(String tableFields)
tableFields - the formatted filter information such as
"tablename1;fieldname1;fieldname2|tablename2;fieldname1". No ";" or "|" should be
transfered to
*.tablename1.fieldname1|*.tablename1.fieldname2|...
added at the beginning or end of the string.public void setBranchDb(String db)
db - is the original branched db name.public void addTablesFields(String tableFields)
tableFields - consistent formatted filter information.Copyright © 2017. All Rights Reserved.