fix compile errors

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1410760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-11-17 18:10:44 +00:00
parent 04af95d20f
commit 763bb885b1
2 changed files with 20 additions and 3 deletions

View File

@ -49,18 +49,20 @@ public class Lucene41SimpleDocValuesFormat extends SimpleDocValuesFormat {
@Override @Override
public SimpleDVProducer fieldsProducer(SegmentReadState state) public SimpleDVProducer fieldsProducer(SegmentReadState state)
throws IOException { 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 //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<String, DocValues> docValues; private final TreeMap<String, DocValues> docValues;
/** /**
* Creates a new {@link Lucene41PerDocProducer} instance and loads all * Creates a new {@link Lucene41PerDocProducer} instance and loads all
* {@link DocValues} instances for this segment and codec. * {@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); docValues = load(state.fieldInfos, state.segmentInfo.name, state.segmentInfo.getDocCount(), state.dir, state.context);
} }

View File

@ -736,6 +736,21 @@ public class MemoryIndex {
return new FieldInfos(fieldInfos.values().toArray(new FieldInfo[fieldInfos.size()])); 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 { private class MemoryFields extends Fields {
@Override @Override
public Iterator<String> iterator() { public Iterator<String> iterator() {