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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddTuple(Object[] args, TupleBuffer codes) voidclose()voidcreateIndex(String property) create a new index for propertyvoidflush()get the indexed propertiesbooleanisPropertyIndexed(String property) is property indexedvoidremoveTuple(long objectCode, String property, String value) search for search expression in propertysearch for search expression in property and maxDistancevoidvoidvoid
-
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
-