java.lang.Object
org.apache.jena.sparql.modify.request.UpdateWriter
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable
,UpdateSerializer
-
Constructor Summary
ConstructorDescriptionUpdateWriter
(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext sCxt) Create a UpdateWriter for output of a single UpdateRequest. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
void
void
delete
(org.apache.jena.graph.Node graph, org.apache.jena.graph.Triple triple) void
void
flush()
void
void
void
insert
(org.apache.jena.graph.Node graph, org.apache.jena.graph.Triple triple) void
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
Serializes a sequence of updatesvoid
Serializes a sequence of updatesvoid
Serializes the given update
-
Constructor Details
-
UpdateWriter
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 interfaceUpdateSerializer
-
insert
-
insert
-
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
-
delete
-
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
Description copied from interface:UpdateSerializer
Serializes the given update- Specified by:
update
in interfaceUpdateSerializer
- Parameters:
update
- Update
-
update
Description copied from interface:UpdateSerializer
Serializes a sequence of updates- Specified by:
update
in interfaceUpdateSerializer
- Parameters:
updates
- Updates
-
update
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
-
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)
-