public class Indexer extends java.lang.Object
The class takes a list of files as input and uses the
break these files into individual chunks. By implementing the
it reacts on chunking events and creates a new database version (with the newly
added/changed/removed files. This functionality is entirely implemented by the
The class uses the currently loaded
MemoryDatabase as well as a potential
dirty database into account. Lookups for chunks and file histories are performed
on both databases.
|Constructor and Description|
|Modifier and Type||Method and Description|
This method implements the index/deduplication functionality of Syncany.
public void index(java.util.List<java.io.File> files, java.util.List<java.io.File> deletedFiles, java.util.Queue<DatabaseVersion> databaseVersionQueue) throws java.io.IOException
Deduperto break files down, compares them to the local database and creates a new
DatabaseVersionas a result.
files- List of files to be deduplicated
deletedFiles- List of files that have been deleted
databaseVersionQueue- Queue to which created databaseVersions are offered
java.io.IOException- If the chunking/deduplication cannot read/process any of the files
Syncany is an open-source cloud storage and filesharing application.
Code located at https://github.com/syncany/syncany
JavaDoc for version 0.4.9-alpha generated based on commit d57afd7 at Sun Nov 18 14:29:16 UTC 2018
Copyright © 2011-2015 Philipp C. Heckel