Class TextIndex
java.lang.Object
com.semedy.reasoner.symboltable.index.TextIndex
- All Implemented Interfaces:
SymbolTableIndex
,Closeable
,AutoCloseable
Full text index for a symbol table.
- Author:
- Juergen Angele
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
void
open()
void
recreateIndex
(SymbolTable symbols, ExtensionalDB edb) recreate whole text indexvoid
void
void
-
Constructor Details
-
TextIndex
- Throws:
IOException
-
-
Method Details
-
transactionBegin
public void transactionBegin()- Specified by:
transactionBegin
in interfaceSymbolTableIndex
-
transactionRollback
- Specified by:
transactionRollback
in interfaceSymbolTableIndex
- Throws:
IOException
-
transactionCommit
- Specified by:
transactionCommit
in interfaceSymbolTableIndex
- Throws:
IOException
-
open
- Throws:
IOException
-
search
public SearchResult search(Object expression) throws IOException, org.apache.lucene.queryparser.classic.ParseException - Specified by:
search
in interfaceSymbolTableIndex
- Throws:
IOException
org.apache.lucene.queryparser.classic.ParseException
-
addSymbol
- Specified by:
addSymbol
in interfaceSymbolTableIndex
- Throws:
IOException
-
recreateIndex
public void recreateIndex(SymbolTable symbols, ExtensionalDB edb) throws SemReasonerException, IOException recreate whole text index- Parameters:
symbols
-edb
-- Throws:
SemReasonerException
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSymbolTableIndex
-