Class UpdateWriter

java.lang.Object
org.apache.jena.sparql.modify.request.UpdateWriter
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, UpdateSerializer

public class UpdateWriter extends Object implements UpdateSerializer
  • Constructor Details

    • UpdateWriter

      public UpdateWriter(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext sCxt)
      Create a UpdateWriter for output of a single UpdateRequest.
      Parameters:
      out -
      sCxt - SerializationContext - pass null for one that will produce legal output.
  • Method Details

    • open

      public void open()
      Description copied from interface: UpdateSerializer
      Must be called prior to passing updates to the serializer
      Specified by:
      open in interface UpdateSerializer
    • insert

      public void insert(Quad quad)
    • insert

      public void insert(Iterator<? extends Quad> it)
    • insert

      public void insert(org.apache.jena.graph.Node graph, org.apache.jena.graph.Triple triple)
    • insert

      public void insert(org.apache.jena.graph.Node graph, Iterator<? extends org.apache.jena.graph.Triple> it)
    • delete

      public void delete(Quad quad)
    • delete

      public void delete(Iterator<? extends Quad> it)
    • delete

      public void delete(org.apache.jena.graph.Node graph, org.apache.jena.graph.Triple triple)
    • delete

      public void delete(org.apache.jena.graph.Node graph, Iterator<? extends org.apache.jena.graph.Triple> it)
    • update

      public void update(Update update)
      Description copied from interface: UpdateSerializer
      Serializes the given update
      Specified by:
      update in interface UpdateSerializer
      Parameters:
      update - Update
    • update

      public void update(Iterable<? extends Update> updates)
      Description copied from interface: UpdateSerializer
      Serializes a sequence of updates
      Specified by:
      update in interface UpdateSerializer
      Parameters:
      updates - Updates
    • update

      public void update(Iterator<? extends Update> updateIter)
      Description copied from interface: UpdateSerializer
      Serializes a sequence of updates
      Specified by:
      update in interface UpdateSerializer
      Parameters:
      updateIter - Updates
    • flush

      public void flush()
    • close

      public void close()
      Specified by:
      close in interface org.apache.jena.atlas.lib.Closeable
    • output

      public static void output(UpdateRequest request, org.apache.jena.atlas.io.IndentedWriter out)
    • output

      public static void output(UpdateRequest request, org.apache.jena.atlas.io.IndentedWriter out, SerializationContext sCxt)
    • output

      public static void output(Update update, org.apache.jena.atlas.io.IndentedWriter out, SerializationContext sCxt)