|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.util.lucene.Directories
public class Directories
A set of utilities for Lucene Directory
.
Method Summary | |
---|---|
static long |
checksum(org.apache.lucene.store.Directory dir,
java.lang.String name)
Computes the checksum of the given file name with the directory. |
static long |
checksum(org.apache.lucene.store.IndexInput indexInput)
Computes the checksum of the content represented by the provided index input. |
static void |
copyFromDirectory(org.apache.lucene.store.Directory dir,
java.lang.String fileName,
java.io.File copyTo)
|
static void |
copyFromDirectory(org.apache.lucene.store.IndexInput ii,
java.io.OutputStream os)
|
static void |
copyToDirectory(java.io.File copyFrom,
org.apache.lucene.store.Directory dir,
java.lang.String fileName)
|
static void |
copyToDirectory(java.io.InputStream is,
org.apache.lucene.store.Directory dir,
java.lang.String fileName)
|
static void |
copyToDirectory(java.io.InputStream is,
org.apache.lucene.store.IndexOutput io)
|
static void |
deleteFiles(org.apache.lucene.store.Directory directory)
Deletes all the files from a directory. |
static SizeValue |
estimateSize(org.apache.lucene.store.Directory directory)
Returns the estimated size of a Directory . |
static java.util.Collection<org.apache.lucene.index.IndexCommit> |
listCommits(org.apache.lucene.store.Directory directory)
Lists all the commit point in a directory. |
static void |
sync(org.apache.lucene.store.Directory dir,
java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void deleteFiles(org.apache.lucene.store.Directory directory) throws java.io.IOException
directory
- The directoy to delete all the files from
java.io.IOException
- if an exception occurs during the delete processpublic static SizeValue estimateSize(org.apache.lucene.store.Directory directory) throws java.io.IOException
Directory
.
java.io.IOException
public static java.util.Collection<org.apache.lucene.index.IndexCommit> listCommits(org.apache.lucene.store.Directory directory) throws java.io.IOException
java.io.IOException
public static long checksum(org.apache.lucene.store.Directory dir, java.lang.String name) throws java.io.IOException
java.io.IOException
public static void copyFromDirectory(org.apache.lucene.store.Directory dir, java.lang.String fileName, java.io.File copyTo) throws java.io.IOException
java.io.IOException
public static void copyFromDirectory(org.apache.lucene.store.IndexInput ii, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public static void copyToDirectory(java.io.File copyFrom, org.apache.lucene.store.Directory dir, java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static void copyToDirectory(java.io.InputStream is, org.apache.lucene.store.Directory dir, java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static void sync(org.apache.lucene.store.Directory dir, java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static void copyToDirectory(java.io.InputStream is, org.apache.lucene.store.IndexOutput io) throws java.io.IOException
java.io.IOException
public static long checksum(org.apache.lucene.store.IndexInput indexInput) throws java.io.IOException
Closes the index input once checksum is computed.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |