Package com.oracle.coherence.ai
Interface VectorIndex<KeyType,ValueType,VectorType>
- Type Parameters:
KeyType- the type of the cache keysValueType- the type of the cache valuesVectorType- the type of the vector
- All Superinterfaces:
MapIndex<KeyType,ValueType, VectorType>
- All Known Implementing Classes:
BinaryQuantIndex.BinaryQuantMapIndex
public interface VectorIndex<KeyType,ValueType,VectorType>
extends MapIndex<KeyType,ValueType,VectorType>
A custom
MapIndex that maintains a vector search index.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionquery(VectorType vector, int k, Filter<?> filter) Return the results of the query.Methods inherited from interface com.tangosol.util.MapIndex
delete, get, getComparator, getIndexContents, getUnits, getValueExtractor, insert, isOrdered, isPartial, update
-
Method Details
-
query
Return the results of the query.- Parameters:
vector- the vector to use to perform the searchk- the maximum number of results to returnfilter- an optionalFilterto filter the returned results- Returns:
- the search results
-