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 java.lang.Object implements UpdateSerializer
-
-
Constructor Summary
Constructors Constructor Description UpdateWriter(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext sCxt)
Create a UpdateWriter for output of a single UpdateRequest.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
delete(java.util.Iterator<? extends Quad> it)
void
delete(Node graph, java.util.Iterator<? extends Triple> it)
void
delete(Node graph, Triple triple)
void
delete(Quad quad)
void
flush()
void
insert(java.util.Iterator<? extends Quad> it)
void
insert(Node graph, java.util.Iterator<? extends Triple> it)
void
insert(Node graph, Triple triple)
void
insert(Quad quad)
void
open()
Must be called prior to passing updates to the serializerstatic void
output(UpdateRequest request, org.apache.jena.atlas.io.IndentedWriter out)
static void
output(UpdateRequest request, org.apache.jena.atlas.io.IndentedWriter out, SerializationContext sCxt)
static void
output(Update update, org.apache.jena.atlas.io.IndentedWriter out, SerializationContext sCxt)
void
update(java.lang.Iterable<? extends Update> updates)
Serializes a sequence of updatesvoid
update(java.util.Iterator<? extends Update> updateIter)
Serializes a sequence of updatesvoid
update(Update update)
Serializes the given update
-
-
-
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 interfaceUpdateSerializer
-
insert
public void insert(Quad quad)
-
insert
public void insert(java.util.Iterator<? extends Quad> it)
-
delete
public void delete(Quad quad)
-
delete
public void delete(java.util.Iterator<? extends Quad> it)
-
update
public void update(Update update)
Description copied from interface:UpdateSerializer
Serializes the given update- Specified by:
update
in interfaceUpdateSerializer
- Parameters:
update
- Update
-
update
public void update(java.lang.Iterable<? extends Update> updates)
Description copied from interface:UpdateSerializer
Serializes a sequence of updates- Specified by:
update
in interfaceUpdateSerializer
- 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 interfaceUpdateSerializer
- Parameters:
updateIter
- Updates
-
flush
public void flush()
-
close
public void close()
- Specified by:
close
in interfaceorg.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)
-
-