com.hp.hpl.jena.sparql.pfunction
Class PropertyFunctionBase

java.lang.Object
  extended by com.hp.hpl.jena.sparql.pfunction.PropertyFunctionBase
All Implemented Interfaces:
PropertyFunction
Direct Known Subclasses:
PropertyFunctionEval

public abstract class PropertyFunctionBase
extends Object
implements PropertyFunction

Basic property function handler that calls the implementation subclass one binding at a time


Method Summary
 void build(PropFuncArg argSubject, com.hp.hpl.jena.graph.Node predicate, PropFuncArg argObject, ExecutionContext execCxt)
          Called during query plan construction immediately after the construction of the property function instance.
abstract  QueryIterator exec(Binding binding, PropFuncArg argSubject, com.hp.hpl.jena.graph.Node predicate, PropFuncArg argObject, ExecutionContext execCxt)
           
 QueryIterator exec(QueryIterator input, PropFuncArg argSubject, com.hp.hpl.jena.graph.Node predicate, PropFuncArg argObject, ExecutionContext execCxt)
          Create an iterator of bindings for the given inputs
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public void build(PropFuncArg argSubject,
                  com.hp.hpl.jena.graph.Node predicate,
                  PropFuncArg argObject,
                  ExecutionContext execCxt)
Description copied from interface: PropertyFunction
Called during query plan construction immediately after the construction of the property function instance.

Specified by:
build in interface PropertyFunction
Parameters:
argSubject - The parsed argument(s) in the subject position
predicate - The extension URI (as a Node).
argObject - The parsed argument(s) in the object position
execCxt - Execution context

exec

public QueryIterator exec(QueryIterator input,
                          PropFuncArg argSubject,
                          com.hp.hpl.jena.graph.Node predicate,
                          PropFuncArg argObject,
                          ExecutionContext execCxt)
Description copied from interface: PropertyFunction
Create an iterator of bindings for the given inputs

Specified by:
exec in interface PropertyFunction
Parameters:
input - QueryIterator from the previous stage
argSubject - The parsed argument(s) in the subject position
predicate - The extension URI (as a Node).
argObject - The parsed argument(s) in the object position
execCxt - The execution context
Returns:
QueryIterator

exec

public abstract QueryIterator exec(Binding binding,
                                   PropFuncArg argSubject,
                                   com.hp.hpl.jena.graph.Node predicate,
                                   PropFuncArg argObject,
                                   ExecutionContext execCxt)


Licenced under the Apache License, Version 2.0