org.elasticsearch.index.store.memory
Class HeapDirectory
java.lang.Object
org.apache.lucene.store.Directory
org.elasticsearch.index.store.memory.HeapDirectory
- All Implemented Interfaces:
- java.io.Closeable
public class HeapDirectory
- extends org.apache.lucene.store.Directory
Fields inherited from class org.apache.lucene.store.Directory |
isOpen, lockFactory |
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 |
HeapDirectory
public HeapDirectory()
HeapDirectory
public HeapDirectory(SizeValue bufferSize,
SizeValue cacheSize,
boolean warmCache)
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