remove sop; improve lying to be more believable

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1433149 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-01-14 21:39:40 +00:00
parent 35c19b6298
commit a6e84b0073
3 changed files with 9 additions and 1 deletions

View File

@ -250,6 +250,7 @@ public abstract class SimpleDVConsumer implements Closeable {
if (reader.hasDeletions()) {
state.liveTerms = new FixedBitSet(state.values.getValueCount());
Bits liveDocs = reader.getLiveDocs();
assert liveDocs != null;
for(int docID=0;docID<maxDoc;docID++) {
if (liveDocs.get(docID)) {
state.liveTerms.set(state.values.getOrd(docID));

View File

@ -180,6 +180,14 @@ public class MultiSimpleDocValues {
public Bits getLiveDocs() {
return null; // lie
}
@Override
public int numDocs() {
return maxDoc(); // lie
}
@Override
public boolean hasDeletions() {
return false; // lie
}
});
}
writer.addIndexes(newLeaves.toArray(new AtomicReader[0]));

View File

@ -556,7 +556,6 @@ class FieldCacheImpl implements FieldCache {
throws IOException {
final NumericDocValues valuesIn = reader.getNumericDocValues(key.field);
System.out.println("ints values=" + valuesIn);
if (valuesIn != null) {
return new Ints() {
@Override