| java.lang.Object org.apache.lucene.index.LuceneUtils
LuceneUtils | abstract public class LuceneUtils (Code) | | author: kimchy |
Method Summary | |
public static void | copy(Directory src, Directory dest, byte[] buffer) Copies one directory contents to the other. | public static void | copy(Directory src, Directory dest, String name, byte[] buffer) Copies over the contents of the name entry from the src directory into the dest directory. | public static void | copy(IndexInput indexInput, IndexOutput indexOutput, String name, byte[] buffer) Copies the contents of the IndexInput into the IndexOutput . | public static boolean | isCompound(Directory directory) Returns true if all the segments of the directory are in compound format. | public static boolean | isUnCompound(Directory directory) Returns true if all the segments of the directory are in un-compound format. |
copy | public static void copy(Directory src, Directory dest, byte[] buffer) throws IOException(Code) | | Copies one directory contents to the other. Will automatically compound or uncompound the contents of the
src directory into the dest directory.
Parameters: src - The src directory to copy from Parameters: dest - The dest directory to copy to Parameters: buffer - The buffer to use when copying over throws: IOException - |
copy | public static void copy(Directory src, Directory dest, String name, byte[] buffer) throws IOException(Code) | | Copies over the contents of the name entry from the src directory into the dest directory.
Parameters: src - The src directory to copy from Parameters: dest - The dest directory to copy to Parameters: name - the name of the entry Parameters: buffer - The buffer to use throws: IOException - |
copy | public static void copy(IndexInput indexInput, IndexOutput indexOutput, String name, byte[] buffer) throws IOException(Code) | | Copies the contents of the IndexInput into the IndexOutput .
Parameters: indexInput - The content to copy from Parameters: indexOutput - The output to write to Parameters: name - The name of the file Parameters: buffer - The buffer to use throws: IOException - |
isCompound | public static boolean isCompound(Directory directory) throws IOException(Code) | | Returns true if all the segments of the directory are in compound format.
Will return true if the index does not exists or there are no segments.
|
isUnCompound | public static boolean isUnCompound(Directory directory) throws IOException(Code) | | Returns true if all the segments of the directory are in un-compound format.
Will return true if the index does not exists or there are no segments.
|
|
|