public abstract class AbstractDataFilter extends java.lang.Object implements DataFilter
构造器和说明 |
---|
AbstractDataFilter() |
限定符和类型 | 方法和说明 |
---|---|
void |
filterAndPutData(Calculator c,
JSONArray result,
int start,
int limit,
java.lang.String filter,
boolean removeRepeat,
Dictionary mvList,
JSONArray sourceJa)
根据JSONArray或者数据集Dictionary过滤数据
|
void |
filterAndPutData(Calculator c,
JSONArray result,
int start,
int limit,
java.lang.String filter,
boolean removeRepeat,
Dictionary mvList,
JSONArray sourceJa,
java.lang.String delimiter)
根据JSONArray或者数据集Dictionary过滤数据
|
JSONArray |
getJSONData() |
boolean |
isMatch(java.lang.String txt,
java.lang.String filter)
模糊匹配
|
void |
process(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
处理带有过滤请求的数据并将过滤后的结果数据输出
|
protected int |
putNotEmptyData(JSONArray ja,
int start,
Dictionary.MV mv,
java.util.Set set,
java.lang.Object model,
java.lang.Object view,
java.lang.String text,
int[] repeatCount,
boolean removeRepeat) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
filterAndPut
public void filterAndPutData(Calculator c, JSONArray result, int start, int limit, java.lang.String filter, boolean removeRepeat, Dictionary mvList, JSONArray sourceJa) throws java.lang.Exception
filterAndPutData
在接口中 DataFilter
c
- 算子result
- 结果JSONArraystart
- 开始序号limit
- 数据数目filter
- 过滤词removeRepeat
- 是否移除重复数据mvList
- 数据集sourceJa
- 源数据java.lang.Exception
public void filterAndPutData(Calculator c, JSONArray result, int start, int limit, java.lang.String filter, boolean removeRepeat, Dictionary mvList, JSONArray sourceJa, java.lang.String delimiter) throws java.lang.Exception
filterAndPutData
在接口中 DataFilter
c
- 算子result
- 结果JSONArraystart
- 开始序号limit
- 数据数目filter
- 过滤词removeRepeat
- 是否移除重复数据mvList
- 数据集sourceJa
- 源数据delimiter
- 分隔符java.lang.Exception
public JSONArray getJSONData()
getJSONData
在接口中 DataFilter
public void process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
req
- http请求res
- http应答java.lang.Exception
protected int putNotEmptyData(JSONArray ja, int start, Dictionary.MV mv, java.util.Set set, java.lang.Object model, java.lang.Object view, java.lang.String text, int[] repeatCount, boolean removeRepeat) throws java.lang.Exception
java.lang.Exception
public boolean isMatch(java.lang.String txt, java.lang.String filter)
txt
- 被匹配的字符filter
- 过滤字符