umich.cac.queryengine.xindice
Class BulkLoader
java.lang.Object
umich.cac.queryengine.xindice.BulkLoader
- public final class BulkLoader
- extends java.lang.Object
This class allows you to quickly bulk load an entire directory of XML
accounting files into a collection. The collection must have already been
created, and is defined in the XML configuration file.
For example, if the config file has the collection named "mycollection" you
would type these commands, assuming all your XML files were in c:\xmlfiles\
xindiceadmin add_collection -c /db -n mycollection java umich.cac.queryengine.xindice.BulkLoader --directory=c:\xmlfiles
This class is Xindice specific. Class doesn't support recursive directories
- Version:
- $Header: /cvsroot/pbsaccounting/pbsaccounting/darkslide/doc/javadoc/umich/cac/queryengine/xindice/BulkLoader.html,v 1.3 2003/12/18 17:16:40 rodmach Exp $
- Author:
- rmach@umich.edu
Method Summary |
static void |
main(java.lang.String[] args)
The main program for the BulkLoader class |
static java.lang.String |
readFileFromDisk(java.lang.String fileName)
Reads a file from disk and returns as a String |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BulkLoader
public BulkLoader()
main
public static void main(java.lang.String[] args)
- The main program for the BulkLoader class
- Parameters:
args
- The command line arguments
readFileFromDisk
public static java.lang.String readFileFromDisk(java.lang.String fileName)
- Reads a file from disk and returns as a String
- Parameters:
fileName
- name of the file
- Returns:
- contents of File, or null on error