java.lang.Object
org.nasdanika.rag.core.AbstractEntryStore<K,V,D>
- Type Parameters:
K-V-D-
- All Implemented Interfaces:
Store<K,V, D>
- Direct Known Subclasses:
ZipEntryStore
Simple store implementation on top of a collection of entries
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nasdanika.rag.core.Store
Store.SearchResult<V,D> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAll(Iterable<V> values, KeyExtractor<V, K> keyExtractor, org.nasdanika.common.ProgressMonitor progressMonitor) protected abstract intcompareDistance(D a, D b) protected abstract DfindNearest(K key, int limit) Returns values with distances for nearest keys.abstract Collection<Map.Entry<K,V>> protected booleanprotected booleanisParallelSearch(K key)
-
Constructor Details
-
AbstractEntryStore
public AbstractEntryStore()
-
-
Method Details
-
getEntries
-
distance
-
compareDistance
-
add
-
isParallelSearch
-
isParallelAddAll
-
addAll
-
findNearest
Description copied from interface:StoreReturns values with distances for nearest keys. Ordered by distance.- Specified by:
findNearestin interfaceStore<K,V, D> limit- maximum number of elements to return- Returns:
-