org.apache.blur.lucene.warmup
Class TraceableDirectory
java.lang.Object
org.apache.lucene.store.Directory
org.apache.blur.lucene.warmup.TraceableDirectory
- All Implemented Interfaces:
- Closeable, DirectoryDecorator
public class TraceableDirectory
- extends org.apache.lucene.store.Directory
- implements DirectoryDecorator
Nested classes/interfaces inherited from class org.apache.lucene.store.Directory |
org.apache.lucene.store.Directory.IndexInputSlicer |
TraceableDirectory
public TraceableDirectory(org.apache.lucene.store.Directory dir)
trace
public void trace(String name,
long filePointer)
openInput
public org.apache.lucene.store.IndexInput openInput(String name,
org.apache.lucene.store.IOContext context)
throws IOException
- Specified by:
openInput
in class org.apache.lucene.store.Directory
- Throws:
IOException
listAll
public String[] listAll()
throws IOException
- Specified by:
listAll
in class org.apache.lucene.store.Directory
- Throws:
IOException
fileExists
public boolean fileExists(String name)
throws IOException
- Specified by:
fileExists
in class org.apache.lucene.store.Directory
- Throws:
IOException
deleteFile
public void deleteFile(String name)
throws IOException
- Specified by:
deleteFile
in class org.apache.lucene.store.Directory
- Throws:
IOException
fileLength
public long fileLength(String name)
throws IOException
- Specified by:
fileLength
in class org.apache.lucene.store.Directory
- Throws:
IOException
createOutput
public org.apache.lucene.store.IndexOutput createOutput(String name,
org.apache.lucene.store.IOContext context)
throws IOException
- Specified by:
createOutput
in class org.apache.lucene.store.Directory
- Throws:
IOException
sync
public void sync(Collection<String> names)
throws IOException
- Specified by:
sync
in class org.apache.lucene.store.Directory
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class org.apache.lucene.store.Directory
- Throws:
IOException
isTrace
public boolean isTrace()
setTrace
public void setTrace(boolean trace)
setIndexTracer
public void setIndexTracer(IndexTracer indexTracer)
makeLock
public org.apache.lucene.store.Lock makeLock(String name)
- Overrides:
makeLock
in class org.apache.lucene.store.Directory
clearLock
public void clearLock(String name)
throws IOException
- Overrides:
clearLock
in class org.apache.lucene.store.Directory
- Throws:
IOException
setLockFactory
public void setLockFactory(org.apache.lucene.store.LockFactory lockFactory)
throws IOException
- Overrides:
setLockFactory
in class org.apache.lucene.store.Directory
- Throws:
IOException
getLockFactory
public org.apache.lucene.store.LockFactory getLockFactory()
- Overrides:
getLockFactory
in class org.apache.lucene.store.Directory
getLockID
public String getLockID()
- Overrides:
getLockID
in class org.apache.lucene.store.Directory
toString
public String toString()
- Overrides:
toString
in class org.apache.lucene.store.Directory
copy
public void copy(org.apache.lucene.store.Directory to,
String src,
String dest,
org.apache.lucene.store.IOContext context)
throws IOException
- Overrides:
copy
in class org.apache.lucene.store.Directory
- Throws:
IOException
createSlicer
public org.apache.lucene.store.Directory.IndexInputSlicer createSlicer(String name,
org.apache.lucene.store.IOContext context)
throws IOException
- Overrides:
createSlicer
in class org.apache.lucene.store.Directory
- Throws:
IOException
getOriginalDirectory
public org.apache.lucene.store.Directory getOriginalDirectory()
- Specified by:
getOriginalDirectory
in interface DirectoryDecorator
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.