Stores entries in a list. Uses sum of abs element deltas as distance.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nasdanika.rag.core.Store
Store.SearchResult<V,D> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected intcompareDistance(Integer a, Integer b) protected Integerdistance(byte[] a, byte[] b) Longer vector is greater.Collection<Map.Entry<byte[],String>> protected voidMethods inherited from class org.nasdanika.rag.core.ZipEntryStore
createZipEntry, getValue, loadEntry, saveMethods inherited from class org.nasdanika.rag.core.AbstractEntryStore
add, addAll, findNearest, isParallelAddAll, isParallelSearch
-
Field Details
-
entries
-
-
Constructor Details
-
ArrayListZipEntryStore
public ArrayListZipEntryStore() -
ArrayListZipEntryStore
- Throws:
IOException
-
ArrayListZipEntryStore
- Throws:
IOException
-
-
Method Details
-
loadEntry
- Specified by:
loadEntryin classZipEntryStore<Integer>- Throws:
IOException
-
getEntries
- Specified by:
getEntriesin classAbstractEntryStore<byte[],String, Integer>
-
distance
Longer vector is greater. For the same size - Manhattan distance.- Specified by:
distancein classAbstractEntryStore<byte[],String, Integer>
-
compareDistance
- Specified by:
compareDistancein classAbstractEntryStore<byte[],String, Integer>
-