|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.store.Directory
org.infinispan.lucene.InfinispanDirectory
public class InfinispanDirectory
Implementation that uses Infinispan to store Lucene indices.
Directory locking is assured with SharedLuceneLock
LuceneLockFactory
Field Summary |
---|
Fields inherited from class org.apache.lucene.store.Directory |
---|
lockFactory |
Constructor Summary | |
---|---|
InfinispanDirectory(Cache<CacheKey,Object> cache)
|
|
InfinispanDirectory(Cache<CacheKey,Object> cache,
String indexName)
|
|
InfinispanDirectory(Cache<CacheKey,Object> cache,
String indexName,
int chunkSize)
|
|
InfinispanDirectory(Cache<CacheKey,Object> cache,
String indexName,
org.apache.lucene.store.LockFactory lf)
|
|
InfinispanDirectory(Cache<CacheKey,Object> cache,
String indexName,
org.apache.lucene.store.LockFactory lf,
int chunkSize)
|
Method Summary | |
---|---|
void |
close()
|
org.apache.lucene.store.IndexOutput |
createOutput(String name)
|
void |
deleteFile(String name)
|
boolean |
fileExists(String name)
|
long |
fileLength(String name)
|
long |
fileModified(String name)
|
Cache<CacheKey,Object> |
getCache()
|
String[] |
list()
|
String[] |
listAll()
new name for list() in Lucene 3.0 |
org.apache.lucene.store.IndexInput |
openInput(String name)
|
void |
renameFile(String from,
String to)
|
String |
toString()
|
void |
touchFile(String fileName)
|
Methods inherited from class org.apache.lucene.store.Directory |
---|
clearLock, copy, ensureOpen, getLockFactory, getLockID, makeLock, openInput, setLockFactory, sync |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InfinispanDirectory(Cache<CacheKey,Object> cache, String indexName, org.apache.lucene.store.LockFactory lf, int chunkSize)
public InfinispanDirectory(Cache<CacheKey,Object> cache, String indexName, org.apache.lucene.store.LockFactory lf)
public InfinispanDirectory(Cache<CacheKey,Object> cache, String indexName, int chunkSize)
public InfinispanDirectory(Cache<CacheKey,Object> cache, String indexName)
public InfinispanDirectory(Cache<CacheKey,Object> cache)
Method Detail |
---|
public String[] list() throws IOException
list
in class org.apache.lucene.store.Directory
IOException
public boolean fileExists(String name) throws IOException
fileExists
in class org.apache.lucene.store.Directory
IOException
public long fileModified(String name) throws IOException
fileModified
in class org.apache.lucene.store.Directory
IOException
public void touchFile(String fileName) throws IOException
touchFile
in class org.apache.lucene.store.Directory
IOException
public void deleteFile(String name) throws IOException
deleteFile
in class org.apache.lucene.store.Directory
IOException
public void renameFile(String from, String to) throws IOException
renameFile
in class org.apache.lucene.store.Directory
IOException
public long fileLength(String name) throws IOException
fileLength
in class org.apache.lucene.store.Directory
IOException
public org.apache.lucene.store.IndexOutput createOutput(String name) throws IOException
createOutput
in class org.apache.lucene.store.Directory
IOException
public org.apache.lucene.store.IndexInput openInput(String name) throws IOException
openInput
in class org.apache.lucene.store.Directory
IOException
public void close() throws IOException
close
in class org.apache.lucene.store.Directory
IOException
public String toString()
toString
in class Object
public Cache<CacheKey,Object> getCache()
public String[] listAll() throws IOException
listAll
in class org.apache.lucene.store.Directory
IOException
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |