mirror of https://github.com/apache/lucene.git
LUCENE-4018: Make MappingMultiDocsEnum subenums accessible
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1341981 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4bbef9d503
commit
8a0f7f9af6
|
@ -21,6 +21,8 @@ import org.apache.lucene.util.BytesRef;
|
|||
import org.apache.lucene.index.DocsAndPositionsEnum;
|
||||
import org.apache.lucene.index.MergeState;
|
||||
import org.apache.lucene.index.MultiDocsAndPositionsEnum;
|
||||
import org.apache.lucene.index.MultiDocsAndPositionsEnum.EnumWithSlice;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
|
@ -52,6 +54,14 @@ public final class MappingMultiDocsAndPositionsEnum extends DocsAndPositionsEnum
|
|||
this.mergeState = mergeState;
|
||||
}
|
||||
|
||||
public int getNumSubs() {
|
||||
return numSubs;
|
||||
}
|
||||
|
||||
public EnumWithSlice[] getSubs() {
|
||||
return subs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int freq() throws IOException {
|
||||
return current.freq();
|
||||
|
|
|
@ -20,6 +20,8 @@ package org.apache.lucene.codecs;
|
|||
import org.apache.lucene.index.DocsEnum;
|
||||
import org.apache.lucene.index.MergeState;
|
||||
import org.apache.lucene.index.MultiDocsEnum;
|
||||
import org.apache.lucene.index.MultiDocsEnum.EnumWithSlice;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
|
@ -51,6 +53,14 @@ public final class MappingMultiDocsEnum extends DocsEnum {
|
|||
this.mergeState = mergeState;
|
||||
}
|
||||
|
||||
public int getNumSubs() {
|
||||
return numSubs;
|
||||
}
|
||||
|
||||
public EnumWithSlice[] getSubs() {
|
||||
return subs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int freq() throws IOException {
|
||||
return current.freq();
|
||||
|
|
Loading…
Reference in New Issue