Package io.github.andreyzebin.gitSql.sql
Class FilesIndex
java.lang.Object
io.github.andreyzebin.gitSql.sql.PersistedIndex
io.github.andreyzebin.gitSql.sql.FilesIndex
- All Implemented Interfaces:
JdbcView,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class io.github.andreyzebin.gitSql.sql.PersistedIndex
lastStore, schemaCreated -
Constructor Summary
ConstructorsConstructorDescriptionFilesIndex(FileSystem fileSystem, Path storeDir, Map<Function<String, Boolean>, BiFunction<String, Reader, String>> mappers) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic FilesIndexof(FileSystem fileSystem, Path storeDir, Map<Function<String, Boolean>, BiFunction<String, Reader, String>> mappers) static BiFunction<FileSystem,Path, FilesIndex> protected voidreindex()Methods inherited from class io.github.andreyzebin.gitSql.sql.PersistedIndex
close, drop, getConnection, init, storeExists
-
Field Details
-
JSON_MAPPERS
-
-
Constructor Details
-
FilesIndex
public FilesIndex(FileSystem fileSystem, Path storeDir, Map<Function<String, Boolean>, BiFunction<String, Reader, String>> mappers)
-
-
Method Details
-
of
public static FilesIndex of(FileSystem fileSystem, Path storeDir, Map<Function<String, Boolean>, BiFunction<String, Reader, String>> mappers) -
of
public static BiFunction<FileSystem,Path, ofFilesIndex> (Map<Function<String, Boolean>, BiFunction<String, Reader, String>> mappers) -
createSchema
- Overrides:
createSchemain classPersistedIndex- Throws:
SQLException
-
reindex
protected void reindex()- Overrides:
reindexin classPersistedIndex
-