org.apache.lucene.search.grouping.dv
Class DVGroupFacetCollector
java.lang.Object
org.apache.lucene.search.Collector
org.apache.lucene.search.grouping.AbstractGroupFacetCollector
org.apache.lucene.search.grouping.dv.DVGroupFacetCollector
public abstract class DVGroupFacetCollector
- extends AbstractGroupFacetCollector
An implementation of AbstractGroupFacetCollector
that computes grouped facets based on docvalues.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createDvGroupFacetCollector
public 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.
Currently only the
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.
- Parameters:
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.
- Returns:
- a
DVGroupFacetCollector
implementation
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.