org.apache.maven.index.context
Class IndexUtils

java.lang.Object
  extended by org.apache.maven.index.context.IndexUtils

public class IndexUtils
extends Object


Field Summary
static String TIMESTAMP_FILE
           
 
Constructor Summary
IndexUtils()
           
 
Method Summary
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 void close(org.apache.lucene.index.IndexReader r)
           
static void close(org.apache.lucene.index.IndexWriter w)
           
static void close(InputStream is)
           
static void close(OutputStream os)
           
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 delete(File indexDir)
           
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 void updateTimestamp(org.apache.lucene.store.Directory directory, Date timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIMESTAMP_FILE

public static final String TIMESTAMP_FILE
See Also:
Constant Field Values
Constructor Detail

IndexUtils

public IndexUtils()
Method Detail

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)

deleteTimestamp

public static void deleteTimestamp(org.apache.lucene.store.Directory directory)
                            throws IOException
Throws:
IOException

updateTimestamp

public static void updateTimestamp(org.apache.lucene.store.Directory directory,
                                   Date timestamp)
                            throws IOException
Throws:
IOException

getTimestamp

public static Date getTimestamp(org.apache.lucene.store.Directory directory)

close

public static void close(OutputStream os)

close

public static void close(InputStream is)

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

public static void delete(File indexDir)


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.