Package com.semedy.reasoner.edb.zdb
Class InvertedIndexShingles
java.lang.Object
com.semedy.reasoner.edb.zdb.InvertedIndexShingles
- All Implemented Interfaces:
InvertedIndex
- Author:
- angele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add a string to indexvoid
close()
close indexvoid
flush()
flushs indexboolean
remove string from indexvoid
removeTuple
(long objectCode, String value) remove a termsearch for search termsearch for search term given a max distancesearch for string with a cos similarity >= similarityvoid
begin transactionvoid
commit transactionvoid
rollback transaction
-
Constructor Details
-
InvertedIndexShingles
public InvertedIndexShingles()
-
-
Method Details
-
close
Description copied from interface:InvertedIndex
close index- Specified by:
close
in interfaceInvertedIndex
- Throws:
IOException
-
flush
Description copied from interface:InvertedIndex
flushs index- Specified by:
flush
in interfaceInvertedIndex
- Throws:
IOException
-
transactionBegin
public void transactionBegin()Description copied from interface:InvertedIndex
begin transaction- Specified by:
transactionBegin
in interfaceInvertedIndex
-
transactionRollback
Description copied from interface:InvertedIndex
rollback transaction- Specified by:
transactionRollback
in interfaceInvertedIndex
- Throws:
IOException
-
transactionCommit
Description copied from interface:InvertedIndex
commit transaction- Specified by:
transactionCommit
in interfaceInvertedIndex
- Throws:
IOException
-
search
Description copied from interface:InvertedIndex
search for search term- Specified by:
search
in interfaceInvertedIndex
- Returns:
- Throws:
IOException
-
search
Description copied from interface:InvertedIndex
search for search term given a max distance- Specified by:
search
in interfaceInvertedIndex
- Returns:
- Throws:
IOException
-
removeTuple
Description copied from interface:InvertedIndex
remove a term- Specified by:
removeTuple
in interfaceInvertedIndex
- Throws:
IOException
-
addTuple
add a string to index- Specified by:
addTuple
in interfaceInvertedIndex
- Parameters:
s
-
-
remove
remove string from index- Parameters:
s
-
-
seek
search for string with a cos similarity >= similarity- Parameters:
s
-similarity
-- Returns:
-