本文整理汇总了Java中com.hp.hpl.jena.sparql.algebra.op.OpProject类的典型用法代码示例。如果您正苦于以下问题:Java OpProject类的具体用法?Java OpProject怎么用?Java OpProject使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OpProject类属于com.hp.hpl.jena.sparql.algebra.op包,在下文中一共展示了OpProject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: runPlan
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
private static void runPlan(Plan plan) {
//QueryExecUtils.execute(op, dsg)
List<String> vars = null ;
ResultsFormat outputFormat = ResultsFormat.FMT_TEXT ;
Op op = plan.getOp();
if ( op instanceof OpProject )
vars = Var.varNames(((OpProject)op).getVars()) ;
else
vars = Var.varNames(OpVars.visibleVars(op)) ;
ResultSet results = ResultSetFactory.create(plan.iterator(), vars) ;
QueryExecUtils.outputResultSet(results, null, outputFormat) ;
}
示例2: SparkProjection
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
public SparkProjection(OpProject op) {
this.op = op;
}
示例3: visit
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
@Override
public void visit(OpProject opProject) {
executionQueue.add(new SparkProjection(opProject));
}
示例4: visit
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
@Override
public void visit(OpProject opProject) {
projectVars = opProject.getVars();
}
示例5: visit
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
@Override
public void visit(OpProject opProject) {
SqlOp subOp = stack.pop();
stack.push(new SqlProject(opProject, subOp, prefixes));
}
示例6: SqlProject
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
public SqlProject(OpProject _opProject, SqlOp _subOp,
PrefixMapping _prefixes) {
super(_subOp, _prefixes);
opProject = _opProject;
resultName = Tags.PROJECT;
}
示例7: getOpProject
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
public OpProject getOpProject(){
return this.opProject;
}
示例8: visit
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
public void visit(OpProject opProject) {
variables = opProject.getVars();
}
示例9: PigProject
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
public PigProject(OpProject _opProject, PigOp _subOp, PrefixMapping _prefixes) {
super(_subOp, _prefixes);
opProject = _opProject;
resultName = Tags.PROJECT;
}
示例10: visit
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
@Override
public void visit(OpProject opProject) {
projectVars = opProject.getVars();
}
示例11: visit
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
@Override
public void visit(OpProject opProject) {
ImpalaOp subOp = stack.pop();
stack.push(new ImpalaProject(opProject, subOp, prefixes));
}
示例12: ImpalaProject
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
public ImpalaProject(OpProject _opProject, ImpalaOp _subOp,
PrefixMapping _prefixes) {
super(_subOp, _prefixes);
opProject = _opProject;
resultName = Tags.PROJECT;
}
示例13: visit
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
public void visit(OpProject opProject) {
// TODO Might be able to move down filter past the op
wrapInCurrentFilterAndRecurse(opProject);
}
示例14: transform
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
@Override
public Op transform(OpProject opProject, Op subOp) {
return substitute(opProject, subOp);
}
示例15: transform
import com.hp.hpl.jena.sparql.algebra.op.OpProject; //导入依赖的package包/类
@Override
public Op transform(OpProject opProject, Op subOp) {
return subOp;
}