|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.graph.impl.GraphBase com.hp.hpl.jena.graph.compose.CompositionBase
public abstract class 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 class com.hp.hpl.jena.graph.impl.GraphBase |
---|
TOSTRING_TRIPLE_BASE, TOSTRING_TRIPLE_LIMIT |
Fields inherited from interface com.hp.hpl.jena.graph.Graph |
---|
emptyGraph |
Constructor Summary | |
---|---|
CompositionBase()
|
Method Summary | ||
---|---|---|
static
|
butNot(com.hp.hpl.jena.util.iterator.ClosableIterator<T> a,
com.hp.hpl.jena.util.iterator.ClosableIterator<? extends T> b)
Answer an iterator over the elements of iterator a that are not members of iterator b. |
|
static
|
ifIn(com.hp.hpl.jena.util.iterator.ClosableIterator<T> i)
Answer a Filter that will accept any object that is an element of
iterator i. |
|
static com.hp.hpl.jena.util.iterator.Filter<Triple> |
ifIn(Graph g)
Answer a Filter that will accept any triple that is an edge of
graph g. |
|
static
|
recording(com.hp.hpl.jena.util.iterator.ClosableIterator<T> i,
java.util.Set<T> seen)
Answer an iterator that will record every element delived by next() in
the set seen . |
|
static
|
reject(com.hp.hpl.jena.util.iterator.ClosableIterator<? extends T> i)
Answer a Filter that will reject any element that is a member of iterator i. |
|
static com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> |
rejecting(com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> i,
Graph seen)
Answer an iterator over the elements of i that are not in
the graph seen . |
|
static com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> |
rejecting(com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> i,
java.util.Set<Triple> seen)
Answer an iterator over the elements of iterator i that are not in the set seen . |
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase |
---|
add, close, contains, contains, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getStatisticsHandler, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, queryHandler, size, toString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CompositionBase()
Method Detail |
---|
public static <T> com.hp.hpl.jena.util.iterator.Filter<T> reject(com.hp.hpl.jena.util.iterator.ClosableIterator<? extends T> 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 <T> com.hp.hpl.jena.util.iterator.ClosableIterator<T> butNot(com.hp.hpl.jena.util.iterator.ClosableIterator<T> a, com.hp.hpl.jena.util.iterator.ClosableIterator<? extends T> 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 <T> com.hp.hpl.jena.util.iterator.ExtendedIterator<T> recording(com.hp.hpl.jena.util.iterator.ClosableIterator<T> i, java.util.Set<T> 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 com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> rejecting(com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> i, java.util.Set<Triple> 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 com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> rejecting(com.hp.hpl.jena.util.iterator.ExtendedIterator<Triple> i, Graph seen)
i
that are not in
the graph seen
.
public static <T> com.hp.hpl.jena.util.iterator.Filter<T> ifIn(com.hp.hpl.jena.util.iterator.ClosableIterator<T> 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 com.hp.hpl.jena.util.iterator.Filter<Triple> 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 |