mirror of https://github.com/apache/lucene.git
PackedInts.ReaderIterator should not be closeable.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1412538 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
84b624f028
commit
dfc7786381
|
@ -134,7 +134,6 @@ class VarStraightBytesImpl {
|
||||||
docToAddress[lastDocID] = address + offset;
|
docToAddress[lastDocID] = address + offset;
|
||||||
}
|
}
|
||||||
address += numDataBytes; // this is the address after all addr pointers are updated
|
address += numDataBytes; // this is the address after all addr pointers are updated
|
||||||
iter.close();
|
|
||||||
} finally {
|
} finally {
|
||||||
IOUtils.close(cloneIdx);
|
IOUtils.close(cloneIdx);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,6 @@ package org.apache.lucene.util.packed;
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.io.Closeable;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import org.apache.lucene.codecs.CodecUtil;
|
import org.apache.lucene.codecs.CodecUtil;
|
||||||
|
@ -475,7 +474,7 @@ public class PackedInts {
|
||||||
/**
|
/**
|
||||||
* Run-once iterator interface, to decode previously saved PackedInts.
|
* Run-once iterator interface, to decode previously saved PackedInts.
|
||||||
*/
|
*/
|
||||||
public static interface ReaderIterator extends Closeable {
|
public static interface ReaderIterator {
|
||||||
/** Returns next value */
|
/** Returns next value */
|
||||||
long next() throws IOException;
|
long next() throws IOException;
|
||||||
/** Returns at least 1 and at most <code>count</code> next values,
|
/** Returns at least 1 and at most <code>count</code> next values,
|
||||||
|
@ -520,13 +519,6 @@ public class PackedInts {
|
||||||
public int size() {
|
public int size() {
|
||||||
return valueCount;
|
return valueCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void close() throws IOException {
|
|
||||||
if (in instanceof Closeable) {
|
|
||||||
((Closeable) in).close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue