public abstract class DVGroupFacetCollector extends AbstractGroupFacetCollector
AbstractGroupFacetCollector
that computes grouped facets based on docvalues.AbstractGroupFacetCollector.FacetEntry, AbstractGroupFacetCollector.GroupedFacetResult, AbstractGroupFacetCollector.SegmentResult
endFacetOrd, facetField, facetPrefix, groupField, segmentFacetCounts, segmentResults, segmentTotalCount, startFacetOrd
Modifier and Type | Method and Description |
---|---|
static DVGroupFacetCollector |
createDvGroupFacetCollector(String groupField,
DocValues.Type groupDvType,
boolean groupDiskResident,
String facetField,
DocValues.Type facetDvType,
boolean facetDiskResident,
BytesRef facetPrefix,
int initialSize)
Factory method for creating the right implementation based on the group docvalues type and the facet docvalues
type.
|
acceptsDocsOutOfOrder, createSegmentResult, mergeSegmentResults, setScorer
collect, setNextReader
public static DVGroupFacetCollector createDvGroupFacetCollector(String groupField, DocValues.Type groupDvType, boolean groupDiskResident, String facetField, DocValues.Type facetDvType, boolean facetDiskResident, BytesRef facetPrefix, int initialSize)
DocValues.Type.BYTES_VAR_SORTED
and the DocValues.Type.BYTES_FIXED_SORTED
are
the only docvalues type supported for both the group and facet field.groupField
- The group fieldgroupDvType
- The docvalues type for the group fieldgroupDiskResident
- Whether the group docvalues should be disk residentfacetField
- The facet fieldfacetDvType
- The docvalues type for the facet fieldfacetDiskResident
- Whether the facet docvalues should be disk residentfacetPrefix
- The facet prefix a facet entry should start with to be included.initialSize
- The initial allocation size of the internal int set and group facet list which should roughly
match the total number of expected unique groups. Be aware that the heap usage is
4 bytes * initialSize.DVGroupFacetCollector
implementationCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.