Class ProcedureBase

java.lang.Object
org.apache.jena.sparql.util.PrintSerializableBase
org.apache.jena.sparql.procedure.ProcedureBase
All Implemented Interfaces:
org.apache.jena.atlas.io.Printable, Procedure, PrintSerializable
Direct Known Subclasses:
ProcedureEval

public abstract class ProcedureBase extends PrintSerializableBase implements Procedure
  • Constructor Details

    • ProcedureBase

      public ProcedureBase()
  • Method Details

    • build

      public void build(org.apache.jena.graph.Node procId, ExprList args, ExecutionContext execCxt)
      Description copied from interface: Procedure
      Called during query plan construction immediately after the construction of the property function instance.
      Specified by:
      build in interface Procedure
      Parameters:
      procId - The procedure identifier (usually a URI)
      args - The argument list (unevaluated expressions)
      execCxt - Execution context
    • proc

      public final QueryIterator proc(QueryIterator input, ExecutionContext execCxt)
      Description copied from interface: Procedure
      Call the procedure, with an input iterator of bindings. Implementations can inherit from the convenience form ProcEval which calls repeated for each binding.
      Specified by:
      proc in interface Procedure
      Parameters:
      input - QueryIterator from the previous stage
      execCxt - The execution context
      Returns:
      QueryIterator
    • exec

      public abstract QueryIterator exec(Binding binding, org.apache.jena.graph.Node name, ExprList args, ExecutionContext execCxt)
    • output

      public void output(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext sCxt)
      Specified by:
      output in interface PrintSerializable