public interface SearchIndex
LuceneSail| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Literal literal)
Returns whether the provided literal is accepted by the LuceneIndex to be
indexed.
|
void |
addDocuments(Resource subject,
List<Statement> statements)
Add a complete Lucene Document based on these statements.
|
void |
addRemoveStatements(Collection<Statement> added,
Collection<Statement> removed)
Add many statements at the same time, remove many statements at the same
time.
|
void |
addStatement(Statement statement)
Indexes the specified Statement.
|
void |
begin()
Begins a transaction.
|
void |
beginReading() |
void |
clear()
Clears the indexes.
|
void |
clearContexts(Resource... contexts)
This should be called from within a begin-commit-rollback block.
|
void |
commit()
Commits any changes done to the LuceneIndex since the last commit.
|
void |
endReading() |
Collection<BindingSet> |
evaluate(QuerySpec query) |
void |
initialize(Properties parameters) |
void |
removeStatement(Statement statement)
Removes the specified Statement from the indexes.
|
void |
rollback() |
void |
shutDown() |
void initialize(Properties parameters) throws Exception
ExceptionCollection<BindingSet> evaluate(QuerySpec query) throws SailException
SailExceptionvoid beginReading()
throws IOException
IOExceptionvoid endReading()
throws IOException
IOExceptionvoid shutDown()
throws IOException
IOExceptionboolean accept(Literal literal)
literal - the literal to be acceptedvoid begin()
throws IOException
IOExceptionvoid commit()
throws IOException
IOExceptionvoid rollback()
throws IOException
IOExceptionvoid addStatement(Statement statement) throws IOException
IOExceptionvoid removeStatement(Statement statement) throws IOException
IOExceptionvoid addRemoveStatements(Collection<Statement> added, Collection<Statement> removed) throws IOException
added - all added statements, can have multiple subjectsremoved - all removed statements, can have multiple subjectsIOExceptionvoid clearContexts(Resource... contexts) throws IOException
contexts - sail - - the underlying native sail where to read the missing triples from
after deletionSailExceptionIOExceptionvoid addDocuments(Resource subject, List<Statement> statements) throws IOException
statements - the statements that make up the resourceIOExceptionvoid clear()
throws IOException
IOExceptionCopyright © 2001-2015 Aduna. All Rights Reserved.