Class QuadTableWithInsertOrderPreservation

java.lang.Object
org.aksw.jena_sparql_api.dboe.QuadTableWithInsertOrderPreservation
All Implemented Interfaces:
QuadTableCore

public class QuadTableWithInsertOrderPreservation extends Object implements QuadTableCore
Forwarding QuadTableCore that additionally tracks quads in a collection (typically a LinkedHashSet) Calling .find() with Node.ANY in all places yields a stream from the collection instead
Author:
raven
  • Field Details

    • delegate

      protected QuadTableCore delegate
    • set

      protected Set<org.apache.jena.sparql.core.Quad> set
  • Constructor Details

    • QuadTableWithInsertOrderPreservation

      public QuadTableWithInsertOrderPreservation(QuadTableCore delegate)
    • QuadTableWithInsertOrderPreservation

      public QuadTableWithInsertOrderPreservation(QuadTableCore delegate, Set<org.apache.jena.sparql.core.Quad> collection)
  • Method Details

    • clear

      public void clear()
      Specified by:
      clear in interface QuadTableCore
    • add

      public void add(org.apache.jena.sparql.core.Quad quad)
      Specified by:
      add in interface QuadTableCore
    • delete

      public void delete(org.apache.jena.sparql.core.Quad quad)
      Specified by:
      delete in interface QuadTableCore
    • find

      public Stream<org.apache.jena.sparql.core.Quad> find(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
      Specified by:
      find in interface QuadTableCore
    • listGraphNodes

      public Stream<org.apache.jena.graph.Node> listGraphNodes()
      Specified by:
      listGraphNodes in interface QuadTableCore