2
FindFile is a small Swing application that demonstrates use of Persistit's
3
KeyFilter class, the Exchange pool, and use of Persistit with Swing.
5
To use FindFile, first build a text file containing a (large) list of file
6
names. To to this, use one of these commands:
8
Windows: dir /b /s C:\ >> FileNames.txt
9
Unix/Linux: ls -1 -p -R > FileNames.txt
11
After launching FindFile, specify this file as the source file to load and
12
click the "Load" button.
14
This demo loads the file names from a text file rather than
15
enumerating all the files on the disk through Java file operations
16
for simplicity, and also because we want you to see that Persistit
17
is capable of loading and indexing a lot of information in just a few
22
Run Ant on build.xml in this directory (target "compile")
26
javac -classpath ../../target/akiban-persistit-2.1-SNAPSHOT-jar-with-dependencies-and-tests.jar FindFile.java
30
Run Ant on build.xml in this directory (target "run")
34
java -classpath ../../target/akiban-persistit-2.1-SNAPSHOT-jar-with-dependencies-and-tests.jar;. FindFile
36
Persistit will place a volume file in paths specified by persistit.properties.
37
You can change the location of these files by modifying the datapath property
38
of this configuration file.