Class UpdateWriter

  • All Implemented Interfaces:
    org.apache.jena.atlas.lib.Closeable, UpdateSerializer

    public class UpdateWriter
    extends java.lang.Object
    implements UpdateSerializer
    • Constructor Detail

      • 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 Detail

      • 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​(java.util.Iterator<? extends Quad> it)
      • insert

        public void insert​(Node graph,
                           Triple triple)
      • insert

        public void insert​(Node graph,
                           java.util.Iterator<? extends Triple> it)
      • delete

        public void delete​(Quad quad)
      • delete

        public void delete​(java.util.Iterator<? extends Quad> it)
      • delete

        public void delete​(Node graph,
                           Triple triple)
      • delete

        public void delete​(Node graph,
                           java.util.Iterator<? extends Triple> it)
      • update

        public void update​(java.lang.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​(java.util.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)