Package com.semedy.reasoner.edb.zdb
Class InvertedIndices
java.lang.Object
com.semedy.reasoner.edb.zdb.InvertedIndices
Full text index for edb.
- Author:
- Juergen Angele
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addTuple
(Object[] args, TupleBuffer codes) void
close()
void
createIndex
(String property) create a new index for propertyvoid
flush()
get the indexed propertiesboolean
isPropertyIndexed
(String property) is property indexedvoid
removeTuple
(long objectCode, String property, String value) search for search expression in propertysearch for search expression in property and maxDistancevoid
void
void
-
Constructor Details
-
InvertedIndices
- Throws:
IOException
-
-
Method Details
-
createIndex
create a new index for property- Parameters:
property
-- Throws:
IOException
-
search
public Iterable<SearchResult> search(String searchTerm, String property, float similarity) throws IOException search for search expression in property- Parameters:
searchTerm
-property
-- Returns:
- Throws:
IOException
-
search
public Iterable<SearchResult> search(String searchTerm, String property, int maxDistance) throws IOException search for search expression in property and maxDistance- Parameters:
searchTerm
-property
-maxDistance
-- Returns:
- Throws:
IOException
-
getIndexedProperties
get the indexed properties- Returns:
-
isPropertyIndexed
is property indexed- Parameters:
property
-- Returns:
-
addTuple
- Throws:
IOException
-
addTuple
- Throws:
IOException
-
addTuple
- Throws:
IOException
-
removeTuple
- Throws:
IOException
-
transactionCommit
- Throws:
IOException
-
transactionRollback
- Throws:
IOException
-
transactionBegin
public void transactionBegin() -
close
- Throws:
IOException
-
flush
- Throws:
IOException
-