public interface Store extends AtomSet
Modifier and Type | Method and Description |
---|---|
CloseableIterator<Atom> |
atomsByPredicate(Predicate p)
Returns an iterator over all atoms with the specified predicate.
|
void |
close() |
BatchProcessor |
createBatchProcessor() |
int |
getDomainSize()
Returns the numbers of different terms referenced by atoms in this store
or a greater estimation of it.
|
boolean |
isWriteable() |
CloseableIterator<Atom> |
iterator()
Returns an iterator over the atoms in this atom set.
|
CloseableIterator<Atom> |
match(Atom atom)
Returns an iterator over atoms that match predicate and constants from
the specified atom.
|
CloseableIterator<Predicate> |
predicatesIterator()
Returns an iterator over all predicates in this atom set.
|
int |
size(Predicate p)
Returns the number of atoms related to the specified predicate or a
greater estimation of it.
|
CloseableIterator<Term> |
termsByPredicatePosition(Predicate p,
int position)
Returns an iterator over terms which are in a specific position in at
least one atom with the specified predicate.
|
CloseableIterator<Term> |
termsIterator()
Returns an iterator over all terms in this atom set.
|
CloseableIterator<Term> |
termsIterator(Term.Type type)
Deprecated.
|
add, addAll, addAll, clear, constantsIterator, contains, getConstants, getFreshSymbolGenerator, getLiterals, getPredicates, getTerms, getTerms, getVariables, isEmpty, isSubSetOf, literalsIterator, remove, removeAll, removeAll, variablesIterator
BatchProcessor createBatchProcessor() throws AtomSetException
AtomSetException
boolean isWriteable() throws AtomSetException
AtomSetException
int size(Predicate p)
Integer.MAX_VALUE
.p
- a predicateint getDomainSize()
Integer.MAX_VALUE
.CloseableIterator<Atom> iterator()
AtomSet
iterator
in interface AtomSet
iterator
in interface CloseableIterable<Atom>
CloseableIterator<Atom> match(Atom atom) throws AtomSetException
AtomSet
match
in interface AtomSet
AtomSetException
CloseableIterator<Atom> atomsByPredicate(Predicate p) throws AtomSetException
AtomSet
atomsByPredicate
in interface AtomSet
AtomSetException
CloseableIterator<Term> termsByPredicatePosition(Predicate p, int position) throws AtomSetException
AtomSet
termsByPredicatePosition
in interface AtomSet
position
- the term position in atoms, positions starts from 0.AtomSetException
CloseableIterator<Predicate> predicatesIterator() throws AtomSetException
AtomSet
predicatesIterator
in interface AtomSet
AtomSetException
CloseableIterator<Term> termsIterator() throws AtomSetException
AtomSet
termsIterator
in interface AtomSet
AtomSetException
@Deprecated CloseableIterator<Term> termsIterator(Term.Type type) throws AtomSetException
AtomSet
AtomSet.variablesIterator()
, AtomSet.constantsIterator()
or AtomSet.literalsIterator()
instead.
termsIterator
in interface AtomSet
AtomSetException
void close()
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.