public class RangeFacet extends AbstractSolrQueryFacet
AbstractSolrQueryFacet.FacetValueQueryExecuter
Modifier and Type | Field and Description |
---|---|
protected String |
end |
protected SchemaField |
field |
protected List<String> |
gaps |
protected boolean |
hardEnd |
protected EnumSet<FacetParams.FacetRangeInclude> |
include |
protected EnumSet<FacetParams.FacetRangeOther> |
others |
protected String |
start |
collectionManager, expressionCalculator, name, reductionData
Constructor and Description |
---|
RangeFacet(String name,
SchemaField field,
String start,
String end,
List<String> gaps) |
Modifier and Type | Method and Description |
---|---|
void |
createFacetValueExecuters(Filter filter,
SolrQueryRequest queryRequest,
Consumer<AbstractSolrQueryFacet.FacetValueQueryExecuter> consumer)
Returns the set of
AbstractSolrQueryFacet.FacetValueQueryExecuter s, one for each facet value, through the given consumer. |
String |
getEnd() |
SchemaField |
getField() |
List<String> |
getGaps() |
EnumSet<FacetParams.FacetRangeInclude> |
getInclude() |
EnumSet<FacetParams.FacetRangeOther> |
getOthers() |
String |
getStart() |
boolean |
isHardEnd() |
void |
setHardEnd(boolean hardEnd) |
void |
setInclude(EnumSet<FacetParams.FacetRangeInclude> include) |
void |
setOthers(EnumSet<FacetParams.FacetRangeOther> others) |
createOldResponse, createResponse, exportFacetValue, exportShardData, getName, importFacetValue, importShardData, setExpressionCalculator, setReductionCollectionManager
protected final SchemaField field
protected final String start
protected final String end
protected boolean hardEnd
protected EnumSet<FacetParams.FacetRangeInclude> include
protected EnumSet<FacetParams.FacetRangeOther> others
public void createFacetValueExecuters(Filter filter, SolrQueryRequest queryRequest, Consumer<AbstractSolrQueryFacet.FacetValueQueryExecuter> consumer)
AbstractSolrQueryFacet
AbstractSolrQueryFacet.FacetValueQueryExecuter
s, one for each facet value, through the given consumer.
Each of these executors will be executed after the streaming phase in the AnalyticsDriver
.createFacetValueExecuters
in class AbstractSolrQueryFacet
filter
- the overall filter representing the documents being used for the analytics requestqueryRequest
- the queryRequestconsumer
- the consumer of each facet value's executerpublic String getStart()
public String getEnd()
public EnumSet<FacetParams.FacetRangeInclude> getInclude()
public void setInclude(EnumSet<FacetParams.FacetRangeInclude> include)
public boolean isHardEnd()
public void setHardEnd(boolean hardEnd)
public EnumSet<FacetParams.FacetRangeOther> getOthers()
public void setOthers(EnumSet<FacetParams.FacetRangeOther> others)
public SchemaField getField()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.