We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d60bda4 + cae39c7 commit b297c24Copy full SHA for b297c24
extensions/src/main/java/com/fpf/smartscansdk/extensions/embeddings/FileEmbeddingStore.kt
@@ -15,8 +15,7 @@ import java.nio.ByteOrder
15
import java.nio.channels.FileChannel
16
17
class FileEmbeddingStore(
18
- dir: File,
19
- filename: String,
+ private val file: File,
20
private val embeddingLength: Int,
21
val useCache: Boolean = true,
22
):
@@ -26,7 +25,6 @@ class FileEmbeddingStore(
26
25
const val TAG = "FileEmbeddingStore"
27
}
28
29
- private val file = File(dir, filename)
30
private var cache: LinkedHashMap<Long, Embedding>? = null
31
32
override val exists: Boolean get() = file.exists()
0 commit comments