forked from fanruan/demo-tabledata-redis
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
694 B
24 lines
694 B
package com.fr.plugin.db.redis.core.visit; |
|
|
|
import com.fr.plugin.db.redis.core.DataWrapper; |
|
import com.fr.stable.ParameterProvider; |
|
import com.fr.stable.script.CalculatorProvider; |
|
import redis.clients.jedis.Jedis; |
|
|
|
import java.util.List; |
|
|
|
/** |
|
* Created by richie on 2017/5/2. |
|
*/ |
|
public interface Visitor<T> { |
|
|
|
String TOKEN_SPACE = "\\s+"; |
|
|
|
List<List<T>> getContent(CalculatorProvider calculator, ParameterProvider[] ps, Jedis client, String query, int rowCount) throws Exception; |
|
|
|
DataWrapper<T> buildData(CalculatorProvider calculator, ParameterProvider[] ps, Jedis client, String query, int rowCount) throws Exception; |
|
|
|
boolean match(String query); |
|
|
|
String keyWord(); |
|
}
|
|
|