mirror of https://github.com/apache/lucene.git
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:
parent
04af95d20f
commit
763bb885b1
|
@ -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<String, DocValues> 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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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<String> iterator() {
|
||||
|
|
Loading…
Reference in New Issue