java.lang.Object
org.nasdanika.rag.core.AbstractEntryStore<byte[],String,D>
org.nasdanika.rag.core.ZipEntryStore<D>
- Type Parameters:
D-
- Direct Known Subclasses:
ArrayListZipEntryStore
Entry store loaded from and stored to a zip archive.
Value is a zip entry comment - 64 k characters limit.
This class leaves distance computation as well as in-memory storage to subclasses
-
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 TypeMethodDescriptionprotected ZipEntrycreateZipEntry(byte[] key, String value) protected Stringprotected abstract voidprotected voidloadEntry(InputStream in, ZipEntry entry) voidsave(ZipOutputStream out) Methods inherited from class org.nasdanika.rag.core.AbstractEntryStore
add, addAll, compareDistance, distance, findNearest, getEntries, isParallelAddAll, isParallelSearch
-
Constructor Details
-
ZipEntryStore
- Throws:
IOException
-
ZipEntryStore
- Throws:
IOException
-
ZipEntryStore
public ZipEntryStore()
-
-
Method Details
-
loadEntry
- Throws:
IOException
-
getValue
-
createZipEntry
-
loadEntry
- Throws:
IOException
-
save
- Throws:
IOException
-