All Packages Class Hierarchy This Package Previous Next Index
Class w3c.pics.db.SimpleDatabase
java.lang.Object
|
+----w3c.pics.db.SimpleDatabase
- public class SimpleDatabase
- extends Object
An implementation of a simple database. It returns a vector of input files
that matched the specified search criteria.
-
SimpleDatabase()
- Creates a new, empty SimpleDatabase.
-
main(String[])
- A procedure that creates and runs a SimpleDatabase.
SimpleDatabase
public SimpleDatabase()
- Creates a new, empty SimpleDatabase.
main
public static void main(String args[])
- A procedure that creates and runs a SimpleDatabase.
The first command-line argument must be the number of profiles with which
to start the SimpleDatabase.
It also can take the following additional command-line arguments:
- -debug -- When present, prints out extra debugging information to the
console while the database is running.
- -labelcount -- When present, the next argument will be read as an
integer. This value will be used as the number of label files to create
and read to start the database.
- -querycount -- When present, the next argument will be read as an
integer. This value will be used as the number of queries that will
be performed in each batch after the database is created.
- -vectordebug -- Turns on vectordebug mode, which prints out extra
debugging information about vector matching to the console when the
database is running.
- -nomatch -- Turns off matching. When matching is on, every time a
label matches a profile, a message is printed out to the console.
- -printv -- Turns on print vector mode, which prints out extra
debugging information during the building of the labelstore.
- -quiet -- Turns off most debugging output. Equivalent to -nomatch
-silentmatch -silentinsert.
- -nostub -- When not present, the database will create and use random
pseudo-profiles and pseudo-labels
- -labelfile -- When present, will read labels from a file rather than
prompting the user for individual labels.
- -queryfile -- When present, will read user queries from a file rather
than prompting the user for individual labels.
- -basename -- When present, will read the next argument as a filename.
It will use this filename as the base name for profiles to be created.
- -qfilename -- When present, will read the next argument as a filename.
It will use this filename as the source of queries. Only useful with
the -queryfile flag.
- -silentinsert -- Turns off the debugging output that is generated when
the initial hashtable is being built.
- -silentmatch -- Turns off the debugging output that is generated when
the database is run against labels.
- -autorun -- Enables autorun mode. Autorun mode will have the database
begin running labels as soon as its database is built, rather than waiting
for the run command for the user.
- -nolabelmaker -- Uses previously generated label files rather than
calling LabelMaker to make new labels.
- -rulzgen -- Generates random PicsRULZ using a RulzGenerator.
- -rulznosave -- Generates random PicsRULZ using a RulzGenerator, but
does not save the files to disk.
- -rulzmode -- Indicates that real PICS labels and PicsRULZ are to be
used by the database rather than pseudo-labels and pseudo-profiles. Also
automatically includes the -nostub flag.
- -oldrulz -- When present, will attempt to read the next argument as
a filename. It will use this filename as the name of the ratfile. This
flag will prevent new .rlz files from being generated, instead it will
use previously generated files.
- -ratfile -- When present, will attempt to read the next argument as
a full pathname. It will use this full pathname as the location of the
ratfile to use.
- -current -- Sets up the database with the "current" settings.
Equivalent to -quiet -labelfile -queryfile -qfilename (default name)
-autorun -rulzmode -newmode -fulllabels -minilabels
- -load -- Disables quiet mode.
- -noauto -- Disables autorun mode.
- -newmode -- Enables new implementation mode. (Version 3)
- -loudmatch -- Disables silentmatch mode.
- -fulllabels -- When present, the database will use full PICS labels
rather than miminal labels.
- -nolstore -- When present, a labelstore will not be created. Only the
DataPusher will receive the results of processing labels.
- -minilabels -- When present, labels will be read from individual files
rather than one large label file.
Once the program has started, it will build a database and, depending on
the command-line arguments, run it against an initial label set. After
this, the command prompt will appear. The following commands are
available (this information is identical to what appears when the help
command is issued):
- add labels: Adds a the labels from a specified file to the lstore
- add to db: Adds a specified .rlz file to the database
- gc: Forces a System.gc() call
- help: Shows this help info
- lstore size: Prints out the size of the labelstore
- print db: Prints the database to the screen
- print datapusher: Prints out the current contents of the DataPusher
- print labeltourl: Prints the labeltourl table to the screen
- print lstore: Prints the labelstore to the screen
- print user: Prints out the current username
- print vcnames: Prints out the vcnames hashtable
- printfile db: Prints the database to the file db.txt
- printfile lstore: Prints the labelstore to the file lstore.txt
- printfile vcnames: Prints the vcnames hashtable to the file vcnames.txt
- purge datapusher: Purges the entire DataPusher
- push user: Sends the current user the latest infomation from the
DataPusher
- push all: Prints out an HTML file for each user in the DataPusher
- quit: Quits the program
- rebuild datapusher: Rebuilds the DataPusher from the data currently in
the labelstore
- reportmem: Prints out the Java VM memory usage.
- run: Builds the labelstore
- setuser: Sets the system to use a particular user profile.
- update db: Updates the database with another file set
- update lstore: Updates the labelstore to be current with the database
- userquery: Query the system as a particular user, using a particular
label.
All Packages Class Hierarchy This Package Previous Next Index