public class NaturalRDBMSStore extends AbstractRdbmsStore
MAX_BATCH_SIZE, VARCHAR_SIZE
Constructor and Description |
---|
NaturalRDBMSStore(RdbmsDriver driver) |
Modifier and Type | Method and Description |
---|---|
protected Statement |
add(Statement statement,
Atom atom) |
CloseableIterator<Atom> |
atomsByPredicate(Predicate p)
Returns an iterator over all atoms with the specified predicate.
|
boolean |
check(Atom a)
Check if the specified Atom has a format accepted by the store.
|
boolean |
check(Predicate p)
Check if the specified predicate has a format accepted by the store.
|
BatchProcessor |
createBatchProcessor() |
protected void |
createDatabaseSchema() |
protected DBTable |
createPredicateTable(Predicate predicate)
Create a table associated to the specified predicate and return the table
informations.
|
RdbmsConjunctiveQueryTranslator |
getConjunctiveQueryTranslator()
Transform the conjunctive query into a SQL query
|
protected String |
getFreshPredicateTableName(Predicate predicate) |
ConstantGenerator |
getFreshSymbolGenerator() |
protected DBTable |
getPredicateTable(Predicate p)
Get the table informations associated to the specified predicate.
|
protected DBTable |
getPredicateTableIfExist(Predicate predicate)
Ask the database for table informations associated to the specified
predicate.
|
Term |
getTerm(String label) |
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.
|
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.
|
protected boolean |
testDatabaseSchema() |
add, addAll, clear, close, contains, createPredicateTableIfNotExist, createStatement, getConnection, getDriver, isWriteable, iterator, remove, remove, removeAll, removePredicate
getDomainSize, size
addAll, constantsIterator, equals, equals, getConstants, getLiterals, getPredicates, getTerms, getTerms, getVariables, isEmpty, isSubSetOf, literalsIterator, removeAll, toString, variablesIterator
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDomainSize, size
addAll, constantsIterator, getConstants, getLiterals, getPredicates, getTerms, getTerms, getVariables, isEmpty, isSubSetOf, literalsIterator, removeAll, variablesIterator
public NaturalRDBMSStore(RdbmsDriver driver) throws AtomSetException
driver
- AtomSetException
public CloseableIterator<Atom> match(Atom atom) throws AtomSetException
AtomSet
AtomSetException
public Term getTerm(String label) throws AtomSetException
AtomSetException
public ConstantGenerator getFreshSymbolGenerator()
public CloseableIterator<Atom> atomsByPredicate(Predicate p) throws AtomSetException
AtomSet
AtomSetException
public CloseableIterator<Term> termsByPredicatePosition(Predicate p, int position) throws AtomSetException
AtomSet
position
- the term position in atoms, positions starts from 0.AtomSetException
public CloseableIterator<Predicate> predicatesIterator() throws AtomSetException
AtomSet
AtomSetException
public CloseableIterator<Term> termsIterator() throws AtomSetException
AtomSet
AtomSetException
@Deprecated public CloseableIterator<Term> termsIterator(Term.Type type) throws AtomSetException
AtomSet
AtomSet.variablesIterator()
, AtomSet.constantsIterator()
or AtomSet.literalsIterator()
instead.
AtomSetException
public RdbmsConjunctiveQueryTranslator getConjunctiveQueryTranslator()
RdbmsStore
public boolean check(Atom a) throws AtomSetException
RdbmsStore
check
in interface RdbmsStore
check
in class AbstractRdbmsStore
AtomSetException
public boolean check(Predicate p) throws AtomSetException
RdbmsStore
check
in interface RdbmsStore
check
in class AbstractRdbmsStore
AtomSetException
public BatchProcessor createBatchProcessor() throws AtomSetException
createBatchProcessor
in interface Store
createBatchProcessor
in class AbstractStore
AtomSetException
protected Statement add(Statement statement, Atom atom) throws AtomSetException
add
in class AbstractRdbmsStore
AtomSetException
protected boolean testDatabaseSchema() throws AtomSetException
testDatabaseSchema
in class AbstractRdbmsStore
AtomSetException
protected void createDatabaseSchema() throws AtomSetException
createDatabaseSchema
in class AbstractRdbmsStore
AtomSetException
protected DBTable getPredicateTable(Predicate p) throws AtomSetException
AbstractRdbmsStore
getPredicateTable
in class AbstractRdbmsStore
AtomSetException
protected DBTable createPredicateTable(Predicate predicate) throws AtomSetException
AbstractRdbmsStore
createPredicateTable
in class AbstractRdbmsStore
AtomSetException
protected DBTable getPredicateTableIfExist(Predicate predicate) throws AtomSetException
AbstractRdbmsStore
getPredicateTableIfExist
in class AbstractRdbmsStore
AtomSetException
protected String getFreshPredicateTableName(Predicate predicate) throws AtomSetException
getFreshPredicateTableName
in class AbstractRdbmsStore
AtomSetException
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.