org.elasticsearch.index.store.memory
Class HeapDirectory

java.lang.Object
  extended by org.apache.lucene.store.Directory
      extended by org.elasticsearch.index.store.memory.HeapDirectory
All Implemented Interfaces:
java.io.Closeable

public class HeapDirectory
extends org.apache.lucene.store.Directory


Field Summary
 
Fields inherited from class org.apache.lucene.store.Directory
isOpen, lockFactory
 
Constructor Summary
HeapDirectory()
           
HeapDirectory(SizeValue bufferSize, SizeValue cacheSize, boolean warmCache)
           
 
Method Summary
 SizeValue bufferSize()
           
 SizeValue cacheSize()
           
 void close()
           
 org.apache.lucene.store.IndexOutput createOutput(java.lang.String name)
           
 void deleteFile(java.lang.String name)
           
 boolean fileExists(java.lang.String name)
           
 long fileLength(java.lang.String name)
           
 long fileModified(java.lang.String name)
           
 java.lang.String[] listAll()
           
 org.apache.lucene.store.IndexInput openInput(java.lang.String name)
           
 void touchFile(java.lang.String name)
           
 
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, toString, wait, wait, wait
 

Constructor Detail

HeapDirectory

public HeapDirectory()

HeapDirectory

public HeapDirectory(SizeValue bufferSize,
                     SizeValue cacheSize,
                     boolean warmCache)
Method Detail

bufferSize

public SizeValue bufferSize()

cacheSize

public SizeValue cacheSize()

listAll

public java.lang.String[] listAll()
                           throws java.io.IOException
Specified by:
listAll in class org.apache.lucene.store.Directory
Throws:
java.io.IOException

fileExists

public boolean fileExists(java.lang.String name)
                   throws java.io.IOException
Specified by:
fileExists in class org.apache.lucene.store.Directory
Throws:
java.io.IOException

fileModified

public long fileModified(java.lang.String name)
                  throws java.io.IOException
Specified by:
fileModified in class org.apache.lucene.store.Directory
Throws:
java.io.IOException

touchFile

public void touchFile(java.lang.String name)
               throws java.io.IOException
Specified by:
touchFile in class org.apache.lucene.store.Directory
Throws:
java.io.IOException

deleteFile

public void deleteFile(java.lang.String name)
                throws java.io.IOException
Specified by:
deleteFile in class org.apache.lucene.store.Directory
Throws:
java.io.IOException

fileLength

public long fileLength(java.lang.String name)
                throws java.io.IOException
Specified by:
fileLength in class org.apache.lucene.store.Directory
Throws:
java.io.IOException

createOutput

public org.apache.lucene.store.IndexOutput createOutput(java.lang.String name)
                                                 throws java.io.IOException
Specified by:
createOutput in class org.apache.lucene.store.Directory
Throws:
java.io.IOException

openInput

public org.apache.lucene.store.IndexInput openInput(java.lang.String name)
                                             throws java.io.IOException
Specified by:
openInput in class org.apache.lucene.store.Directory
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class org.apache.lucene.store.Directory
Throws:
java.io.IOException