Package org.apache.maven.index.context
Class IndexUtils
java.lang.Object
org.apache.maven.index.context.IndexUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
close
(InputStream is) static void
close
(OutputStream os) static void
close
(org.apache.lucene.index.IndexReader r) static void
close
(org.apache.lucene.index.IndexWriter w) static void
close
(org.apache.lucene.store.Directory d) static void
close
(org.apache.lucene.store.IndexInput in) static void
close
(org.apache.lucene.store.IndexOutput io) static ArtifactInfo
constructArtifactInfo
(org.apache.lucene.document.Document doc, IndexingContext context) static void
copyDirectory
(org.apache.lucene.store.Directory source, org.apache.lucene.store.Directory target) static boolean
copyFile
(org.apache.lucene.store.Directory source, org.apache.lucene.store.Directory target, String name) static boolean
copyFile
(org.apache.lucene.store.Directory source, org.apache.lucene.store.Directory target, String srcName, String targetName) static void
static void
deleteTimestamp
(org.apache.lucene.store.Directory directory) static Date
getTimestamp
(org.apache.lucene.store.Directory directory) static org.apache.lucene.document.Document
updateDocument
(org.apache.lucene.document.Document doc, IndexingContext context) static org.apache.lucene.document.Document
updateDocument
(org.apache.lucene.document.Document doc, IndexingContext context, boolean updateLastModified) static org.apache.lucene.document.Document
updateDocument
(org.apache.lucene.document.Document doc, IndexingContext context, boolean updateLastModified, ArtifactInfo ai) static void
updateTimestamp
(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
-