|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.store.Directory org.erowid.sperosearch.splitindex.SplitIndexDirectory
A read-only Directory for use with Lucene. It uses standard HTTP to retrieve the files, which are split into segments and then compressed. In addition, there is a directory file that lists the files, their sizes, the segment size, and other information.
Method Summary | |
void |
close()
Closes this directory and cleans up resources. |
OutputStream |
createFile(String fileName)
Does nothing, because this is a read only directory. |
void |
deleteFile(String arg0)
Does nothing, because this is a read only directory. |
boolean |
fileExists(String fileName)
Returns true if the requested file exists in this directory. |
long |
fileLength(String fileName)
Returns the length of the named file. |
long |
fileModified(String fileName)
Always returns 0, because this is a read only directory. |
static SplitIndexDirectory |
getDirectory(URL url)
A factory for creating/returning an HttpDirectory for the passed in URL. |
String[] |
list()
Http can't really support this. |
Lock |
makeLock(String arg0)
Returns a dummy lock object. |
InputStream |
openFile(String fileName)
Returns a InputStream that
pipes in the data for the requested file. |
void |
renameFile(String arg0,
String arg1)
Does nothing, because this is a read only directory. |
void |
touchFile(String arg0)
Does nothing, because this is a read only directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static SplitIndexDirectory getDirectory(URL url) throws IOException
IOException
public String[] list() throws IOException
IOException
public boolean fileExists(String fileName) throws IOException
IOException
public long fileModified(String fileName) throws IOException
IOException
public void touchFile(String arg0) throws IOException
IOException
public void deleteFile(String arg0) throws IOException
IOException
public void renameFile(String arg0, String arg1) throws IOException
IOException
public long fileLength(String fileName) throws IOException
IOException
public OutputStream createFile(String fileName) throws IOException
IOException
public InputStream openFile(String fileName) throws IOException
InputStream
that
pipes in the data for the requested file.
IOException
public Lock makeLock(String arg0)
public void close() throws IOException
IOException
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |