org.apache.blur.mapreduce.lib
Class CopyRateDirectory
java.lang.Object
org.apache.lucene.store.Directory
org.apache.blur.mapreduce.lib.CopyRateDirectory
- All Implemented Interfaces:
- Closeable
public class CopyRateDirectory
- extends org.apache.lucene.store.Directory
Decorator of Directory to capture the copy rate of a directory copy.
Nested classes/interfaces inherited from class org.apache.lucene.store.Directory |
org.apache.lucene.store.Directory.IndexInputSlicer |
Methods inherited from class org.apache.lucene.store.Directory |
clearLock, copy, createSlicer, getLockFactory, getLockID, makeLock, setLockFactory, toString |
CopyRateDirectory
public CopyRateDirectory(org.apache.lucene.store.Directory dir,
RateCounter copyRateCounter)
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
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
sync
public void sync(Collection<String> names)
throws IOException
- Specified by:
sync
in class org.apache.lucene.store.Directory
- Throws:
IOException
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
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class org.apache.lucene.store.Directory
- Throws:
IOException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.