Package org.apache.maven.index.context
Class IndexUtils
java.lang.Object
org.apache.maven.index.context.IndexUtils
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose(InputStream is) static voidclose(OutputStream os) static voidclose(org.apache.lucene.index.IndexReader r) static voidclose(org.apache.lucene.index.IndexWriter w) static voidclose(org.apache.lucene.store.Directory d) static voidclose(org.apache.lucene.store.IndexInput in) static voidclose(org.apache.lucene.store.IndexOutput io) static ArtifactInfoconstructArtifactInfo(org.apache.lucene.document.Document doc, IndexingContext context) static voidcopyDirectory(org.apache.lucene.store.Directory source, org.apache.lucene.store.Directory target) static booleancopyFile(org.apache.lucene.store.Directory source, org.apache.lucene.store.Directory target, String name) static booleancopyFile(org.apache.lucene.store.Directory source, org.apache.lucene.store.Directory target, String srcName, String targetName) static voidstatic voiddeleteTimestamp(org.apache.lucene.store.Directory directory) static DategetTimestamp(org.apache.lucene.store.Directory directory) static org.apache.lucene.document.DocumentupdateDocument(org.apache.lucene.document.Document doc, IndexingContext context) static org.apache.lucene.document.DocumentupdateDocument(org.apache.lucene.document.Document doc, IndexingContext context, boolean updateLastModified) static org.apache.lucene.document.DocumentupdateDocument(org.apache.lucene.document.Document doc, IndexingContext context, boolean updateLastModified, ArtifactInfo ai) static voidupdateTimestamp(org.apache.lucene.store.Directory directory, Date timestamp)  
- 
Field Details
- 
TIMESTAMP_FILE
- See Also:
 
 
 - 
 - 
Constructor Details
- 
IndexUtils
public IndexUtils() 
 - 
 - 
Method Details
- 
copyDirectory
public static void copyDirectory(org.apache.lucene.store.Directory source, org.apache.lucene.store.Directory target) throws IOException - Throws:
 IOException
 - 
copyFile
public static boolean copyFile(org.apache.lucene.store.Directory source, org.apache.lucene.store.Directory target, String name) throws IOException - Throws:
 IOException
 - 
copyFile
public static boolean copyFile(org.apache.lucene.store.Directory source, org.apache.lucene.store.Directory target, String srcName, String targetName) throws IOException - Throws:
 IOException
 - 
constructArtifactInfo
public static ArtifactInfo constructArtifactInfo(org.apache.lucene.document.Document doc, IndexingContext context)  - 
updateDocument
public static org.apache.lucene.document.Document updateDocument(org.apache.lucene.document.Document doc, IndexingContext context)  - 
updateDocument
public static org.apache.lucene.document.Document updateDocument(org.apache.lucene.document.Document doc, IndexingContext context, boolean updateLastModified)  - 
updateDocument
public static org.apache.lucene.document.Document updateDocument(org.apache.lucene.document.Document doc, IndexingContext context, boolean updateLastModified, ArtifactInfo ai)  - 
deleteTimestamp
- Throws:
 IOException
 - 
updateTimestamp
public static void updateTimestamp(org.apache.lucene.store.Directory directory, Date timestamp) throws IOException - Throws:
 IOException
 - 
getTimestamp
 - 
close
 - 
close
 - 
close
public static void close(org.apache.lucene.store.IndexOutput io)  - 
close
public static void close(org.apache.lucene.store.IndexInput in)  - 
close
public static void close(org.apache.lucene.index.IndexReader r)  - 
close
public static void close(org.apache.lucene.index.IndexWriter w)  - 
close
public static void close(org.apache.lucene.store.Directory d)  - 
delete
 
 -