Apache Lucene open-source search software
LUCENE-5678: Remove more seeking stuff
Uwe Schindler5dbdedb42fc8
diff --git a/solr/core/src/java/org/apache/solr/store/blockcache/CachedIndexOutput.java b/solr/core/src/java/org/apache/solr/store/blockcache/CachedIndexOutput.javaindex 28383b16d96..2de06f46ee2 100644--- a/solr/core/src/java/org/apache/solr/store/blockcache/CachedIndexOutput.java+++ b/solr/core/src/java/org/apache/solr/store/blockcache/CachedIndexOutput.java@@ -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 datadiff --git a/solr/core/src/java/org/apache/solr/store/blockcache/ReusedBufferedIndexOutput.java b/solr/core/src/java/org/apache/solr/store/blockcache/ReusedBufferedIndexOutput.javaindex 06a5afea6de..7f42b62601f 100644--- a/solr/core/src/java/org/apache/solr/store/blockcache/ReusedBufferedIndexOutput.java+++ b/solr/core/src/java/org/apache/solr/store/blockcache/ReusedBufferedIndexOutput.java@@ -87,8 +87,6 @@ public abstract class ReusedBufferedIndexOutput extends IndexOutput {return bufferStart + bufferPosition;}- protected abstract void seekInternal(long pos) throws IOException;-@Overridepublic 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();- }}