Package com.semedy.reasoner.edb.zdb
Interface InvertedIndex
- All Known Implementing Classes:
InvertedIndexLucene,InvertedIndexShingles
public interface InvertedIndex
- Author:
- angele
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd a new termvoidclose()close indexvoidflush()flushs indexvoidremoveTuple(long objectCode, String value) remove a termsearch for search termsearch for search term given a max distancevoidbegin transactionvoidcommit transactionvoidrollback transaction
-
Method Details
-
close
close index- Throws:
IOException
-
flush
flushs index- Throws:
IOException
-
transactionBegin
void transactionBegin()begin transaction -
transactionRollback
rollback transaction- Throws:
IOException
-
transactionCommit
commit transaction- Throws:
IOException
-
search
search for search term- Parameters:
searchTerm-- Returns:
- Throws:
IOException
-
search
search for search term given a max distance- Parameters:
searchTerm-maxDistance-- Returns:
- Throws:
IOException
-
addTuple
add a new term- Parameters:
value-objectCode-- Throws:
IOException
-
removeTuple
remove a term- Parameters:
objectCode-value-- Throws:
IOException
-