PostingsEnum
instead.@Deprecated public abstract class DocsAndPositionsEnum extends DocsEnum
Modifier and Type | Field and Description |
---|---|
static int |
FLAG_OFFSETS
Deprecated.
Flag to pass to
TermsEnum.docsAndPositions(Bits,DocsAndPositionsEnum,int)
if you require offsets in the returned enum. |
static int |
FLAG_PAYLOADS
Deprecated.
Flag to pass to
TermsEnum.docsAndPositions(Bits,DocsAndPositionsEnum,int)
if you require payloads in the returned enum. |
static short |
OLD_NULL_SEMANTICS
Deprecated.
only for internal use.
|
FLAG_FREQS, FLAG_NONE
ALL, FREQS, NONE, OFFSETS, PAYLOADS, POSITIONS
NO_MORE_DOCS
Modifier | Constructor and Description |
---|---|
protected |
DocsAndPositionsEnum()
Deprecated.
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
endOffset()
Deprecated.
Returns end offset for the current position, or -1 if
offsets were not indexed.
|
abstract BytesRef |
getPayload()
Deprecated.
Returns the payload at this position, or null if no
payload was indexed.
|
abstract int |
nextPosition()
Deprecated.
Returns the next position.
|
abstract int |
startOffset()
Deprecated.
Returns start offset for the current position, or -1
if offsets were not indexed.
|
attributes, featureRequested, freq
advance, all, cost, docID, empty, nextDoc, slowAdvance
public static final int FLAG_OFFSETS
TermsEnum.docsAndPositions(Bits,DocsAndPositionsEnum,int)
if you require offsets in the returned enum.public static final int FLAG_PAYLOADS
TermsEnum.docsAndPositions(Bits,DocsAndPositionsEnum,int)
if you require payloads in the returned enum.@Deprecated public static final short OLD_NULL_SEMANTICS
protected DocsAndPositionsEnum()
public abstract int nextPosition() throws IOException
PostingsEnum.freq()
times else
the behavior is not defined. If positions were not
indexed this will return -1; this only happens if
offsets were indexed and you passed needsOffset=true
when pulling the enum.nextPosition
in class DocsEnum
IOException
public abstract int startOffset() throws IOException
startOffset
in class DocsEnum
IOException
public abstract int endOffset() throws IOException
endOffset
in class DocsEnum
IOException
public abstract BytesRef getPayload() throws IOException
getPayload
in class DocsEnum
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.