Class RandomOrderGraph

java.lang.Object
org.apache.jena.graph.impl.WrappedGraph
org.apache.jena.shared.RandomOrderGraph
All Implemented Interfaces:
Graph, GraphWithPerform

public class RandomOrderGraph extends WrappedGraph
Wraps a graph and randomizes the order of find results.
  • Constructor Details

    • RandomOrderGraph

      public RandomOrderGraph(int bufsz, Graph base)
      Parameters:
      base -
    • RandomOrderGraph

      public RandomOrderGraph(Graph base)
      Parameters:
      base -
  • Method Details

    • createDefaultGraph

      public static Graph createDefaultGraph()
    • createDefaultModel

      public static Model createDefaultModel()
    • find

      public ExtendedIterator<Triple> find(Triple triple)
      Description copied from interface: Graph
      Returns an iterator over all the Triples that match the triple pattern.
      Specified by:
      find in interface Graph
      Overrides:
      find in class WrappedGraph
      Parameters:
      triple - a Triple encoding the pattern to look for
      Returns:
      an iterator of all triples in this graph that match m
    • find

      public ExtendedIterator<Triple> find(Node s, Node p, Node o)
      Description copied from interface: Graph
      Returns an iterator over Triples matching a pattern.
      Specified by:
      find in interface Graph
      Overrides:
      find in class WrappedGraph
      Returns:
      an iterator of triples in this graph matching the pattern.