public static final class StatsField.HllOptions extends Object
HLL
StatsField.Stat.cardinality
Modifier and Type | Method and Description |
---|---|
com.google.common.hash.HashFunction |
getHasher()
May be null if user has indicated that field values are pre-hashed
|
int |
getLog2m() |
int |
getRegwidth() |
HLL |
newHLL() |
static StatsField.HllOptions |
parseHllOptions(SolrParams localParams,
SchemaField field)
Creates an HllOptions based on the (local) params specified (if appropriate).
|
public static StatsField.HllOptions parseHllOptions(SolrParams localParams, SchemaField field) throws SolrException
localParams
- the LocalParams for this StatsField
field
- the field corresponding to this StatsField
, may be null if these stats are over a value sourceStatsField.HllOptions
to use based on the params, or null if no HLL
should be computedSolrException
- if there are invalid optionspublic int getLog2m()
HLL
public int getRegwidth()
HLL
public com.google.common.hash.HashFunction getHasher()
public HLL newHLL()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.