Class DocCountProvider
java.lang.Object
org.elasticsearch.search.aggregations.bucket.DocCountProvider
An implementation of a doc_count provider that reads the value
of the _doc_count field in the document. If a document does not have a
_doc_count field the implementation will return 1 as the default value.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getDocCount(int doc)
void
setLeafReaderContext(org.apache.lucene.index.LeafReaderContext ctx)
toString()
-
Field Details
-
DEFAULT_VALUE
public static final int DEFAULT_VALUE- See Also:
- Constant Field Values
-
-
Constructor Details
-
DocCountProvider
public DocCountProvider()
-
-
Method Details
-
getDocCount
- Throws:
IOException
-
setLeafReaderContext
- Throws:
IOException
-
alwaysOne
public boolean alwaysOne() -
toString
-