|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.graph.impl.GraphBase
com.hp.hpl.jena.graph.compose.CompositionBase
Base class for graphs that are composed of multiple sub-graphs. This is to provide
a home for shared functionality that was previously in Dyadic
before
refactoring.
Field Summary |
Fields inherited from interface com.hp.hpl.jena.graph.Graph |
ADD, DELETE, ORDERED, SIZE |
Constructor Summary | |
CompositionBase()
|
Method Summary | |
static ClosableIterator |
butNot(ClosableIterator a,
ClosableIterator b)
Answer an iterator over the elements of iterator a that are not members of iterator b. |
boolean |
contains(Triple t)
Answer true if the given triple occurs at least once in this graph. |
static int |
countIterator(ClosableIterator i)
Answer the number of items in the closable iterator i. |
static Filter |
ifIn(ClosableIterator i)
Answer a Filter that will accept any object that is an element of
iterator i. |
static Filter |
ifIn(Graph g)
Answer a Filter that will accept any triple that is an edge of
graph g.
|
static ExtendedIterator |
recording(ClosableIterator i,
java.util.Set seen)
Answer an iterator that will record every element delived by next() in
the set seen .
|
static Filter |
reject(ClosableIterator i)
Answer a Filter that will reject any element that is a member of iterator i.
|
static ExtendedIterator |
rejecting(ExtendedIterator i,
java.util.Set seen)
Answer an iterator over the elements of iterator i that are not in the set seen .
|
int |
size()
Answer the number of triples in this graph |
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
add, capabilities, close, contains, delete, dependsOn, find, find, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, queryHandler, toString, withReification |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CompositionBase()
Method Detail |
public int size()
Answer the number of triples in this graph
Graph.size()
public boolean contains(Triple t)
Answer true if the given triple occurs at least once in this graph.
t
- A triple to test
Graph.contains(Triple)
public static Filter reject(ClosableIterator i)
Answer a Filter
that will reject any element that is a member of iterator i.
As a side-effect, i will be closed.
i
- A closable iterator
public static ClosableIterator butNot(ClosableIterator a, ClosableIterator b)
Answer an iterator over the elements of iterator a that are not members of iterator b. As a side-effect, iterator b will be closed.
a
- An iterator that will be filtered by rejecting the elements of bb
- A closable iterator
public static ExtendedIterator recording(ClosableIterator i, java.util.Set seen)
Answer an iterator that will record every element delived by next()
in
the set seen
.
i
- A closable iteratorseen
- A set that will record each element of i in turn
public static ExtendedIterator rejecting(ExtendedIterator i, java.util.Set seen)
Answer an iterator over the elements of iterator i that are not in the set seen
.
i
- An extended iteratorseen
- A set of objects
seen
.public static int countIterator(ClosableIterator i)
Answer the number of items in the closable iterator i. As a side effect, i is closed.
i
- A closable iterator
public static Filter ifIn(ClosableIterator i)
Answer a Filter
that will accept any object that is an element of
iterator i. As a side-effect, i will be evaluated and closed.
i
- A closable iterator
public static Filter ifIn(Graph g)
Answer a Filter
that will accept any triple that is an edge of
graph g.
g
- A graph
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |