Package com.semedy.reasoner.edb.zdb
Interface InvertedIndex
- All Known Implementing Classes:
InvertedIndexLucene
,InvertedIndexShingles
public interface InvertedIndex
- Author:
- angele
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add a new termvoid
close()
close indexvoid
flush()
flushs indexvoid
removeTuple
(long objectCode, String value) remove a termsearch for search termsearch for search term given a max distancevoid
begin transactionvoid
commit transactionvoid
rollback 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
-