gov.nasa.pds.search.core.indexer.pds
Class ProfileParser
java.lang.Object
gov.nasa.pds.search.core.indexer.pds.ProfileParser
public class ProfileParser
- extends Object
Parses a profile for text search and creates a Lucene document.
- Version:
- $Revision: 10981 $
- Author:
- pramirez
Method Summary |
static void |
main(String[] args)
Used to test the current java program. |
static org.apache.lucene.document.Document |
parse(File file)
Creates the document object a parses out all of the data from each
individual XML documents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProfileParser
public ProfileParser()
parse
public static org.apache.lucene.document.Document parse(File file)
- Creates the document object a parses out all of the data from each
individual XML documents.
- Parameters:
file
- - The individual profile document for each record for the
current class.
- Returns:
- Document - Lucene DOM document returned with parsed data.
main
public static void main(String[] args)
throws Exception
- Used to test the current java program.
- Parameters:
args
-
- Throws:
Exception
Copyright © 2010-2013 Planetary Data System. All Rights Reserved.