public class FileMGraph extends SimpleMGraph
Constructor and Description |
---|
FileMGraph(File file,
Parser parser,
Serializer serializer) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Triple e) |
boolean |
addAll(Collection<? extends Triple> c) |
void |
delete() |
Iterator<Triple> |
filter(NonLiteral subject,
UriRef predicate,
Resource object)
Filters triples given a pattern.
|
boolean |
performAdd(Triple e)
A subclass of
AbstractTripleCollection should override
this method instead of add for graph event support to be
added. |
Iterator<Triple> |
performFilter(NonLiteral subject,
UriRef predicate,
Resource object)
A subclass of
AbstractTripleCollection should override
this method instead of filter for graph event support to be
added. |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
void |
setCheckConcurrency(boolean bool)
Specifies whether or not to throw
ConcurrentModificationException s,
if this simple triple collection is modified concurrently. |
int |
size() |
getGraph
addGraphListener, addGraphListener, contains, dispatchEvent, iterator, performRemove, removeGraphListener
clear, containsAll, isEmpty, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addGraphListener, addGraphListener, removeGraphListener
clear, contains, containsAll, hashCode, isEmpty, iterator, size, toArray, toArray
public FileMGraph(File file, Parser parser, Serializer serializer)
public boolean add(Triple e)
add
in interface Collection<Triple>
add
in class AbstractTripleCollection
public boolean addAll(Collection<? extends Triple> c)
addAll
in interface Collection<Triple>
addAll
in class AbstractCollection<Triple>
public boolean remove(Object o)
remove
in interface Collection<Triple>
remove
in class AbstractTripleCollection
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<Triple>
removeAll
in class AbstractTripleCollection
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<Triple>
retainAll
in class AbstractCollection<Triple>
public Iterator<Triple> filter(NonLiteral subject, UriRef predicate, Resource object)
TripleCollection
filter
in interface TripleCollection
filter
in class AbstractTripleCollection
Iterator
public void delete()
public int size()
size
in interface Collection<Triple>
size
in class AbstractCollection<Triple>
public Iterator<Triple> performFilter(NonLiteral subject, UriRef predicate, Resource object)
AbstractTripleCollection
AbstractTripleCollection
should override
this method instead of filter
for graph event support to be
added. The Iterator returned by filter
will dispatch a
GraphEvent after invoking the remove method of the iterator returned by
this method.performFilter
in class AbstractTripleCollection
public boolean performAdd(Triple e)
AbstractTripleCollection
AbstractTripleCollection
should override
this method instead of add
for graph event support to be
added.performAdd
in class AbstractTripleCollection
e
- The triple to be added to the triple collectionpublic void setCheckConcurrency(boolean bool)
ConcurrentModificationException
s,
if this simple triple collection is modified concurrently. Concurrency
check is set to false by default.bool
- Specifies whether or not to check concurrent modifications.Copyright © 2014 The Apache Software Foundation. All Rights Reserved.