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:
Uwe Schindler 2014-06-03 14:22:40 +00:00
parent cfa27cbf2e
commit 5dbdedb42f
2 changed files with 0 additions and 12 deletions

View File

@ -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

View File

@ -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();
}
}