public abstract class DocsEnum extends DocIdSetIterator
DocIdSetIterator.nextDoc()
before using
any of the per-doc methods.Modifier and Type | Field and Description |
---|---|
static int |
FLAG_FREQS
Flag to pass to
TermsEnum.docs(Bits,DocsEnum,int)
if you require term frequencies in the returned enum. |
NO_MORE_DOCS
Modifier | Constructor and Description |
---|---|
protected |
DocsEnum()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
AttributeSource |
attributes()
Returns the related attributes.
|
abstract int |
freq()
Returns term frequency in the current document.
|
advance, docID, nextDoc
public static final int FLAG_FREQS
TermsEnum.docs(Bits,DocsEnum,int)
if you require term frequencies in the returned enum.protected DocsEnum()
public abstract int freq() throws IOException
DocIdSetIterator.nextDoc()
is first called,
nor after DocIdSetIterator.nextDoc()
returns NO_MORE_DOCS.IOException
public AttributeSource attributes()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.