Package org.apache.solr.analytics.facet
Class RangeFacet
java.lang.Object
org.apache.solr.analytics.facet.AnalyticsFacet
org.apache.solr.analytics.facet.AbstractSolrQueryFacet
org.apache.solr.analytics.facet.RangeFacet
A facet that groups data by a discrete set of ranges.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.analytics.facet.AbstractSolrQueryFacet
AbstractSolrQueryFacet.FacetValueQueryExecuter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final SchemaFieldprotected booleanprotected EnumSet<org.apache.solr.common.params.FacetParams.FacetRangeInclude> protected EnumSet<org.apache.solr.common.params.FacetParams.FacetRangeOther> protected final StringFields inherited from class org.apache.solr.analytics.facet.AnalyticsFacet
collectionManager, expressionCalculator, name, reductionData -
Constructor Summary
ConstructorsConstructorDescriptionRangeFacet(String name, SchemaField field, String start, String end, List<String> gaps) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateFacetValueExecuters(org.apache.lucene.search.Query filter, SolrQueryRequest queryRequest, Consumer<AbstractSolrQueryFacet.FacetValueQueryExecuter> consumer) Returns the set ofAbstractSolrQueryFacet.FacetValueQueryExecuters, one for each facet value, through the given consumer.getEnd()getField()getGaps()EnumSet<org.apache.solr.common.params.FacetParams.FacetRangeInclude> EnumSet<org.apache.solr.common.params.FacetParams.FacetRangeOther> getStart()booleanvoidsetHardEnd(boolean hardEnd) voidsetInclude(EnumSet<org.apache.solr.common.params.FacetParams.FacetRangeInclude> include) voidMethods inherited from class org.apache.solr.analytics.facet.AnalyticsFacet
createOldResponse, createResponse, exportFacetValue, exportShardData, getName, importFacetValue, importShardData, setExpressionCalculator, setReductionCollectionManager
-
Field Details
-
field
-
start
-
end
-
gaps
-
hardEnd
protected boolean hardEnd -
include
-
others
-
-
Constructor Details
-
RangeFacet
-
-
Method Details
-
createFacetValueExecuters
public void createFacetValueExecuters(org.apache.lucene.search.Query filter, SolrQueryRequest queryRequest, Consumer<AbstractSolrQueryFacet.FacetValueQueryExecuter> consumer) Description copied from class:AbstractSolrQueryFacetReturns the set ofAbstractSolrQueryFacet.FacetValueQueryExecuters, one for each facet value, through the given consumer.Each of these executors will be executed after the streaming phase in the
AnalyticsDriver.- Specified by:
createFacetValueExecutersin classAbstractSolrQueryFacet- Parameters:
filter- the overall query representing the documents being used for the analytics requestqueryRequest- the queryRequestconsumer- the consumer of each facet value's executer
-
getStart
-
getEnd
-
getInclude
-
setInclude
public void setInclude(EnumSet<org.apache.solr.common.params.FacetParams.FacetRangeInclude> include) -
getGaps
-
isHardEnd
public boolean isHardEnd() -
setHardEnd
public void setHardEnd(boolean hardEnd) -
getOthers
-
setOthers
-
getField
-