|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.index.LuceneUtils
public abstract class LuceneUtils
| Constructor Summary | |
|---|---|
LuceneUtils()
|
|
| Method Summary | |
|---|---|
static void |
copy(Directory src,
Directory dest,
byte[] buffer)
Copies one directory contents to the other. |
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. |
static void |
copy(IndexInput indexInput,
IndexOutput indexOutput,
String name,
byte[] buffer)
Copies the contents of the IndexInput into the IndexOutput. |
static boolean |
isCompound(Directory directory)
Returns true if all the segments of the directory are in compound format. |
static boolean |
isSegmentsFile(String name)
|
static boolean |
isUnCompound(Directory directory)
Returns true if all the segments of the directory are in un-compound format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LuceneUtils()
| Method Detail |
|---|
public static void copy(Directory src,
Directory dest,
byte[] buffer)
throws IOException
src - The src directory to copy fromdest - The dest directory to copy tobuffer - The buffer to use when copying over
IOException
public static void copy(Directory src,
Directory dest,
String name,
byte[] buffer)
throws IOException
src - The src directory to copy fromdest - The dest directory to copy toname - the name of the entrybuffer - The buffer to use
IOException
public static void copy(IndexInput indexInput,
IndexOutput indexOutput,
String name,
byte[] buffer)
throws IOException
IndexInput into the IndexOutput.
indexInput - The content to copy fromindexOutput - The output to write toname - The name of the filebuffer - The buffer to use
IOException
public static boolean isCompound(Directory directory)
throws IOException
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.
IOException
public static boolean isUnCompound(Directory directory)
throws IOException
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.
IOExceptionpublic static boolean isSegmentsFile(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||