com.joanju.cgs.lucene
Class CuIndexer
java.lang.Object
com.joanju.cgs.lucene.CuIndexer
public class CuIndexer
- extends java.lang.Object
Indexes a compile unit.
Since this is called by the Callgraph build process, we ensure that each
CU processed is flushed and committed, in case of a JVM crash. That's
how the Callgraph build works: each cu is completely written to the database
when it is processed. If we didn't autocommit here, and the JVM crashed, then
this Lucene index would be out of date while Callgraph would see the CU as up
to date.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CuIndexer
public CuIndexer(Configuration config)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws CorruptIndexException,
java.io.IOException
- Throws:
CorruptIndexException
java.io.IOException
index
public void index(ParseUnit pu)
throws java.io.IOException,
java.sql.SQLException
- Throws:
java.io.IOException
java.sql.SQLException
Copyright © 2008 Joanju Software. All Rights Reserved.