mirror of https://github.com/apache/lucene.git
fix jdocs; fix unsupported overridden ops in DocsAndPositionsEnum
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@941269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0a66653baa
commit
c1a666b604
|
@ -38,7 +38,13 @@ public abstract class DocsAndPositionsEnum extends DocsEnum {
|
|||
|
||||
public abstract boolean hasPayload();
|
||||
|
||||
public final int read(int[] docs, int[] freqs) {
|
||||
@Override
|
||||
public final int read() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
public BulkReadResult getBulkResult() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,8 +57,8 @@ public abstract class Terms {
|
|||
}
|
||||
}
|
||||
|
||||
/** Get DocsEnum for the specified term. This method may
|
||||
* return null if the term does not exist. */
|
||||
/** Get {@link DocsEnum} for the specified term. This
|
||||
* method may return null if the term does not exist. */
|
||||
public DocsEnum docs(Bits skipDocs, BytesRef text, DocsEnum reuse) throws IOException {
|
||||
final TermsEnum termsEnum = getThreadTermsEnum();
|
||||
if (termsEnum.seek(text) == TermsEnum.SeekStatus.FOUND) {
|
||||
|
@ -68,9 +68,9 @@ public abstract class Terms {
|
|||
}
|
||||
}
|
||||
|
||||
/** Get DocsEnum for the specified term. This method will
|
||||
* may return null if the term does not exists, or
|
||||
* positions were not indexed. */
|
||||
/** Get {@link DocsEnum} for the specified term. This
|
||||
* method will may return null if the term does not
|
||||
* exists, or positions were not indexed. */
|
||||
public DocsAndPositionsEnum docsAndPositions(Bits skipDocs, BytesRef text, DocsAndPositionsEnum reuse) throws IOException {
|
||||
final TermsEnum termsEnum = getThreadTermsEnum();
|
||||
if (termsEnum.seek(text) == TermsEnum.SeekStatus.FOUND) {
|
||||
|
|
Loading…
Reference in New Issue