Class StatsField.HllOptions
java.lang.Object
org.apache.solr.handler.component.StatsField.HllOptions
- Enclosing class:
StatsField
Helper Struct for parsing and encapsulating all of the options relaed to building a
HLL- See Also:
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.hash.HashFunctionMay be null if user has indicated that field values are pre-hashedintgetLog2m()intnewHLL()static StatsField.HllOptionsparseHllOptions(org.apache.solr.common.params.SolrParams localParams, SchemaField field) Creates an HllOptions based on the (local) params specified (if appropriate).
-
Method Details
-
parseHllOptions
public static StatsField.HllOptions parseHllOptions(org.apache.solr.common.params.SolrParams localParams, SchemaField field) throws org.apache.solr.common.SolrException Creates an HllOptions based on the (local) params specified (if appropriate).- Parameters:
localParams- the LocalParams for thisStatsFieldfield- the field corresponding to thisStatsField, may be null if these stats are over a value source- Returns:
- the
StatsField.HllOptionsto use based on the params, or null if noHLLshould be computed - Throws:
org.apache.solr.common.SolrException- if there are invalid options
-
getLog2m
public int getLog2m()- See Also:
-
getRegwidth
public int getRegwidth()- See Also:
-
getHasher
public com.google.common.hash.HashFunction getHasher()May be null if user has indicated that field values are pre-hashed -
newHLL
-