mirror of https://github.com/apache/lucene.git
LUCENE-5678: Remove more seeking stuff
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1599568 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cfa27cbf2e
commit
5dbdedb42f
|
@ -52,11 +52,6 @@ public class CachedIndexOutput extends ReusedBufferedIndexOutput {
|
|||
cache.renameCacheFile(location, directory.getFileCacheName(name));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void seekInternal(long pos) throws IOException {
|
||||
throw new IOException("Seek not supported");
|
||||
}
|
||||
|
||||
private int writeBlock(long position, byte[] b, int offset, int length)
|
||||
throws IOException {
|
||||
// read whole block into cache and then provide needed data
|
||||
|
|
|
@ -87,8 +87,6 @@ public abstract class ReusedBufferedIndexOutput extends IndexOutput {
|
|||
return bufferStart + bufferPosition;
|
||||
}
|
||||
|
||||
protected abstract void seekInternal(long pos) throws IOException;
|
||||
|
||||
@Override
|
||||
public void writeByte(byte b) throws IOException {
|
||||
if (bufferPosition >= bufferSize) {
|
||||
|
@ -163,9 +161,4 @@ public abstract class ReusedBufferedIndexOutput extends IndexOutput {
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object clone() throws CloneNotSupportedException {
|
||||
throw new CloneNotSupportedException();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue