diff --git a/lucene/core/src/java/org/apache/lucene/codecs/MappingMultiDocsAndPositionsEnum.java b/lucene/core/src/java/org/apache/lucene/codecs/MappingMultiDocsAndPositionsEnum.java index 683b2c30e54..bff0fe6a5d8 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/MappingMultiDocsAndPositionsEnum.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/MappingMultiDocsAndPositionsEnum.java @@ -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; /** @@ -51,6 +53,14 @@ public final class MappingMultiDocsAndPositionsEnum extends DocsAndPositionsEnum public void setMergeState(MergeState mergeState) { this.mergeState = mergeState; } + + public int getNumSubs() { + return numSubs; + } + + public EnumWithSlice[] getSubs() { + return subs; + } @Override public int freq() throws IOException { diff --git a/lucene/core/src/java/org/apache/lucene/codecs/MappingMultiDocsEnum.java b/lucene/core/src/java/org/apache/lucene/codecs/MappingMultiDocsEnum.java index 8a9bb79525b..a94a0c6d20a 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/MappingMultiDocsEnum.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/MappingMultiDocsEnum.java @@ -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; /** @@ -50,6 +52,14 @@ public final class MappingMultiDocsEnum extends DocsEnum { public void setMergeState(MergeState mergeState) { this.mergeState = mergeState; } + + public int getNumSubs() { + return numSubs; + } + + public EnumWithSlice[] getSubs() { + return subs; + } @Override public int freq() throws IOException {