本文整理了Java中fr.inria.edelweiss.kgram.core.Query.isDebug
方法的一些代码示例,展示了Query.isDebug
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.isDebug
方法的具体详情如下:
包路径:fr.inria.edelweiss.kgram.core.Query
类名称:Query
方法名:isDebug
暂无
代码示例来源:origin: fr.inria.wimmics/corese-core
boolean isDebug() {
return getQuery().isDebug();
}
代码示例来源:origin: fr.inria.wimmics/corese-core
@Override
public Mappings getMappings(Node gNode, List<Node> from, Exp exp, Environment env) {
if (env instanceof Memory) {
if (env.getQuery().isDebug()) {
System.out.println("BGP:\n" + exp);
}
Memory mem = (Memory) env;
Eval eval = mem.getEval();
// prevent loop on BGP exp:
exp.setType(Exp.AND);
Mappings map = eval.subEval(this, gNode, gNode, exp, null);
if (env.getQuery().isDebug()) {
System.out.println("BGP:\n" + map);
}
exp.setType(Exp.BGP);
return map;
} else {
return Mappings.create(query, true);
}
}
代码示例来源:origin: fr.inria.wimmics/corese-core
if (gq.isDebug()) {logger.info("Skip slice for absence of relevant binding");}
return Mappings.create(q);
if (gq.isDebug()) {
logger.info("** Provider query: \n" + q.getAST());
if (gq.isDebug()) {
if (res.size() <= 100 || gq.isDetail()) {
logger.info("** Provider result: \n" + res.toString(true));
if (gq.isDebug()) {
logger.info("** Provider error");
代码示例来源:origin: fr.inria.corese/tinkerpop
@Override
public Mappings getMappings(Node gNode, List<Node> from, Exp exp, Environment env) {
exp.setDebug(env.getQuery().isDebug());
Function<GraphTraversalSource, GraphTraversal<? extends Element, Map<String, Object>>> filter
= databaseDriver.getFilter(exp);
Iterator<Map<String, Object>> vmap = graph.getMaps(filter);
Mappings map = Mappings.create(env.getQuery());
int limit = env.getQuery().getLimit();
Map<String, Object> mm;
while (vmap.hasNext()) {
mm = vmap.next();
Mapping m = process(mm);
if (m != null) {
map.add(m);
if (env.getQuery().isDebug()) {
System.out.println(mm);
System.out.println(m);
}
if (map.size() >= limit) {
return map;
}
}
}
return map;
}
代码示例来源:origin: fr.inria.wimmics/corese-core
@Override
public void insert(Query query, Mappings lMap, Dataset ds) {
Construct cons = Construct.create(query, gm);
cons.setDebug(query.isDebug());
cons.insert(lMap, ds);
lMap.setGraph(gm.getGraph());
}
代码示例来源:origin: fr.inria.wimmics/corese-core
@Override
public void delete(Query query, Mappings lMap, Dataset ds) {
Construct cons = Construct.create(query, gm);
cons.setDebug(query.isDebug());
cons.delete(lMap, ds);
lMap.setGraph(gm.getGraph());
}
}
代码示例来源:origin: fr.inria.corese/tinkerpop
Exp exp = env.getExp();
Query q = env.getQuery();
boolean isDebug = q.isDebug();
Node subject = qEdge.getNode(0);
Node object = qEdge.getNode(1);
if (q.isDebug()) {
System.out.println("TK: " + key + " " + s + " " + p + " " + o);
代码示例来源:origin: fr.inria.wimmics/kggui
/**
* run the thread in //
*/
@Override
public void run(){
Mappings res = null;
MyJPanelQuery panel = frame.getPanel();
if (isValidate()){
//res = validate();
res = compile();
if (res != null) {
if (res.getQuery().isDebug()) {
logger.info("\n" + res.getQuery());
}
}
}
else {
res = query();
}
frame.setBuffer(null);
panel.display(res, frame);
//frame.getPanel().display(res,frame);
}
代码示例来源:origin: fr.inria.corese/tinkerpop
Query q = env.getQuery();
ASTQuery ast = (ASTQuery) q.getAST();
boolean isDebug = q.isDebug();
exp.setDebug(isDebug);
Node subject = qEdge.getNode(0);
if (q.isDebug()) {
System.out.println("TK: " + " " + s + " " + p + " " + o);
代码示例来源:origin: fr.inria.wimmics/corese-core
/**
* construct {} where {} *
*/
void construct(Mappings map, Dataset ds) {
Query query = map.getQuery();
Graph gg = Graph.create();
// can be required to skolemize
gg.setSkolem(isSkolem());
Construct cons = Construct.create(query, new GraphManager(gg));
cons.setDebug(isDebug() || query.isDebug());
cons.construct(map);
map.setGraph(gg);
}
代码示例来源:origin: fr.inria.wimmics/corese-core
/**
* Draft test
* Assign class hierarchy to query extension
* Goal: emulate method inheritance for xt:method(name, term)
* Search method name in type hierarchy
* @test select where
*/
void setMethodHandler(Producer p, Environment env){
Extension ext = env.getQuery().getActualExtension();
if (ext != null && ext.isMethod()){
ClassHierarchy ch = new ClassHierarchy(getGraph(p));
if (env.getQuery().getGlobalQuery().isDebug()){
ch.setDebug(true);
}
ext.setHierarchy(ch);
// WARNING: draft test below
// store current graph in the Interpreter
// hence it does not scale with several graph
// e.g. in server mode
Interpreter.getExtension().setHierarchy(ch);
}
}
内容来源于网络,如有侵权,请联系作者删除!