Class RDFChangesCounter

java.lang.Object
org.apache.jena.rdfpatch.changes.RDFChangesCounter
All Implemented Interfaces:
RDFChanges
Direct Known Subclasses:
RDFChangesLogSummary

public class RDFChangesCounter extends Object implements RDFChanges
  • Constructor Details

    • RDFChangesCounter

      public RDFChangesCounter()
  • Method Details

    • reset

      public void reset()
    • summary

      public PatchSummary summary()
    • start

      public void start()
      Description copied from interface: RDFChanges
      Start processing. The exact meaning is implementation dependent. This should be paired with a RDFChanges.finish().
      Specified by:
      start in interface RDFChanges
    • finish

      public void finish()
      Description copied from interface: RDFChanges
      Finish processing. The exact meaning is implementation dependent. This should be paired with a RDFChanges.start().
      Specified by:
      finish in interface RDFChanges
    • segment

      public void segment()
      Description copied from interface: RDFChanges
      Segment marker.

      A segment is a number of transactions; the grouping rationale is not defined by RDF Patch.

      It might be used to indicate a logical collection of change transactions in a long stream of transactions.

      There is no guarantee it will be used.

      Segments must contain complete transactions.
      Segments must not span start-finish pairs.

      Specified by:
      segment in interface RDFChanges
    • header

      public void header(String field, Node value)
      Description copied from interface: RDFChanges
      Header field. Headers are metadata about the changes being made.
      Specified by:
      header in interface RDFChanges
    • add

      public void add(Node g, Node s, Node p, Node o)
      Description copied from interface: RDFChanges
      Notification that a quad or triple is added. A stream of Triples outside a dataset will have null for the graph name. Inside an RDF Dataset, it may be more natural to use "urn:x-arq:DefaultGraph" or "urn:x-arq:DefaultGraphNode" in which case test with Quad.isDefaultGraph(Node).

      It is not defined whether the add happens before or after this notification all.

      Specified by:
      add in interface RDFChanges
    • delete

      public void delete(Node g, Node s, Node p, Node o)
      Description copied from interface: RDFChanges
      Notification that a quad or triple is deleted. A stream of Triples outside a dataset will have null for the graph name. Inside an RDF Dataset, it may be more natural to use "urn:x-arq:DefaultGraph" or "urn:x-arq:DefaultGraphNode" in which case test with Quad.isDefaultGraph(Node).

      It is not defined whether the delete happens before or after this notification all.

      Specified by:
      delete in interface RDFChanges
    • addPrefix

      public void addPrefix(Node gn, String prefix, String uriStr)
      Description copied from interface: RDFChanges
      Specified by:
      addPrefix in interface RDFChanges
    • deletePrefix

      public void deletePrefix(Node gn, String prefix)
      Description copied from interface: RDFChanges
      Specified by:
      deletePrefix in interface RDFChanges
    • txnBegin

      public void txnBegin()
      Description copied from interface: RDFChanges
      Indicator that a transaction begins, or becomes a write transaction.
      Specified by:
      txnBegin in interface RDFChanges
    • txnCommit

      public void txnCommit()
      Description copied from interface: RDFChanges
      Indicator that a transaction commits. If this throws an exception, the transaction will be aborted locally and not commit after all.
      Specified by:
      txnCommit in interface RDFChanges
    • txnAbort

      public void txnAbort()
      Description copied from interface: RDFChanges
      Indicator that a transaction aborts
      Specified by:
      txnAbort in interface RDFChanges