org.apache.jena.sparql.engine.ExecutionContext.setExecutor()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(75)

本文整理了Java中org.apache.jena.sparql.engine.ExecutionContext.setExecutor()方法的一些代码示例,展示了ExecutionContext.setExecutor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ExecutionContext.setExecutor()方法的具体详情如下:
包路径:org.apache.jena.sparql.engine.ExecutionContext
类名称:ExecutionContext
方法名:setExecutor

ExecutionContext.setExecutor介绍

[英]Setter for the policy for algebra expression evaluation - use with care
[中]代数表达式求值策略的设定器-小心使用

代码示例

代码示例来源:origin: apache/jena

/** Execute without modification of the op - does <b>not</b> apply special graph name translations */ 
private static QueryIterator plainExecute(Op op, QueryIterator input, ExecutionContext execCxt)
{
  // -- Execute
  // Switch to a non-reordering executor
  // The Op may be a sequence due to TransformFilterPlacement
  // so we need to do a full execution step, not go straight to the SolverLib.
  
  ExecutionContext ec2 = new ExecutionContext(execCxt) ;
  ec2.setExecutor(plainFactory) ;
  // Solve without going through this executor again.
  // There would be issues of nested patterns but this is only a
  // (filter (bgp...)) or (filter (quadpattern ...)) or sequences of these.
  // so there are no nested patterns to reorder.
  return QC.execute(op, input, ec2) ;
}

代码示例来源:origin: apache/jena

/** Execute without modification of the op - does <b>not</b> apply special graph name translations */ 
private static QueryIterator plainExecute(Op op, QueryIterator input, ExecutionContext execCxt)
{
  // -- Execute
  // Switch to a non-reordering executor
  // The Op may be a sequence due to TransformFilterPlacement
  // so we need to do a full execution step, not go straight to the SolverLib.
  
  ExecutionContext ec2 = new ExecutionContext(execCxt) ;
  ec2.setExecutor(plainFactory) ;
  // Solve without going through this executor again.
  // There would be issues of nested patterns but this is only a
  // (filter (bgp...)) or (filter (quadpattern ...)) or sequences of these.
  // so there are no nested patterns to reorder.
  return QC.execute(op, input, ec2) ;
}

代码示例来源:origin: rdfhdt/hdt-java

/** Execute without modification of the op - does <b>not</b> apply special graph name translations */ 
private static QueryIterator plainExecute(Op op, QueryIterator input, ExecutionContext execCxt)
{
  // -- Execute
  // Switch to a non-reordering executor
  // The Op may be a sequence due to TransformFilterPlacement
  // so we need to do a full execution step, not go straight to the SolverLib.
  
  ExecutionContext ec2 = new ExecutionContext(execCxt) ;
  ec2.setExecutor(plainFactory) ;
  // Solve without going through this executor again.
  // There would be issues of nested patterns but this is only a
  // (filter (bgp...)) or (filter (quadpattern ...)) or sequences of these.
  // so there are no nested patterns to reorder.
  return QC.execute(op, input, ec2) ;
}

相关文章