diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene41/values/Lucene41SimpleDocValuesFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene41/values/Lucene41SimpleDocValuesFormat.java index 6be62455cf1..7397ca8f7f5 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene41/values/Lucene41SimpleDocValuesFormat.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene41/values/Lucene41SimpleDocValuesFormat.java @@ -49,18 +49,20 @@ public class Lucene41SimpleDocValuesFormat extends SimpleDocValuesFormat { @Override public SimpleDVProducer fieldsProducer(SegmentReadState state) throws IOException { - return new Lucene41DocValuesReader(state); + // nocommit fixme + // return new Lucene41PerdocProducer(state); + return null; } //nocommit this is equivalent to sep - we should pack in CFS - private static final class Lucene41DocValuesReader extends SimpleDVProducer { + private static final class Lucene41DocValuesReader extends PerDocProducerBase { private final TreeMap docValues; /** * Creates a new {@link Lucene41PerDocProducer} instance and loads all * {@link DocValues} instances for this segment and codec. */ - public Lucene41PerDocProducer(SegmentReadState state) throws IOException { + public Lucene41DocValuesReader(SegmentReadState state) throws IOException { docValues = load(state.fieldInfos, state.segmentInfo.name, state.segmentInfo.getDocCount(), state.dir, state.context); } diff --git a/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java b/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java index cbcb82f0637..16f068bf8ee 100644 --- a/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java +++ b/lucene/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java @@ -736,6 +736,21 @@ public class MemoryIndex { return new FieldInfos(fieldInfos.values().toArray(new FieldInfo[fieldInfos.size()])); } + // nocommit todo + public NumericDocValues getNumericDocValues(String field, boolean direct) { + return null; + } + + // nocommit todo + public BinaryDocValues getBinaryDocValues(String field, boolean direct) { + return null; + } + + // nocommit todo + public SortedDocValues getSortedDocValues(String field, boolean direct) { + return null; + } + private class MemoryFields extends Fields { @Override public Iterator iterator() {