public static final class StatsField.HllOptions extends Object
HLLStatsField.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 StatsFieldfield - 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()
HLLpublic int getRegwidth()
HLLpublic com.google.common.hash.HashFunction getHasher()
public HLL newHLL()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.