|
||||||||||
| 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 |
compoundDirectory(Directory directory,
long writeLockTimeout)
Compunds the directory. |
static void |
copy(Directory src,
boolean srcIsCompound,
Directory dest,
boolean destIsCompound,
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 |
isUnCompound(Directory directory)
Returns true if all the segments of the directory are in un-compound format. |
static void |
unCompoundDirectory(Directory directory,
long writeLockTimeout)
Compunds the directory. |
| 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,
boolean srcIsCompound,
Directory dest,
boolean destIsCompound,
byte[] buffer)
throws IOException
src - The src directory to copy fromsrcIsCompound - If the src is in compound format or notdest - The dest directory to copy todestIsCompound - If the dest will be in compound format or notbuffer - 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.
IOException
public static void compoundDirectory(Directory directory,
long writeLockTimeout)
throws IOException
IOException
public static void unCompoundDirectory(Directory directory,
long writeLockTimeout)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||