Package org.apache.jena.shared
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.
-
-
Field Summary
-
Fields inherited from interface org.apache.jena.graph.Graph
emptyGraph
-
-
Constructor Summary
Constructors Constructor Description RandomOrderGraph(int bufsz, Graph base)
RandomOrderGraph(Graph base)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Graph
createDefaultGraph()
static Model
createDefaultModel()
ExtendedIterator<Triple>
find(Node s, Node p, Node o)
Returns an iterator over Triples matching a pattern.ExtendedIterator<Triple>
find(Triple triple)
Returns an iterator over all the Triples that match the triple pattern.Capabilities
getCapabilities()
returns this Graph's capabilities-
Methods inherited from class org.apache.jena.graph.impl.WrappedGraph
add, clear, close, contains, contains, delete, dependsOn, getEventManager, getPrefixMapping, getTransactionHandler, getWrapped, isClosed, isEmpty, isIsomorphicWith, performAdd, performDelete, remove, size
-
-
-
-
Method Detail
-
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 interfaceGraph
- Overrides:
find
in classWrappedGraph
- 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 interfaceGraph
- Overrides:
find
in classWrappedGraph
- Returns:
- an iterator of triples in this graph matching the pattern.
-
getCapabilities
public Capabilities getCapabilities()
Description copied from interface:Graph
returns this Graph's capabilities- Specified by:
getCapabilities
in interfaceGraph
- Overrides:
getCapabilities
in classWrappedGraph
-
-