public class WikiMetricLoader extends Object implements MetricLoader
Modifier and Type | Field and Description |
---|---|
static int |
BYTES_PER_KILOBYTE |
static int |
DEFAULT_KILOBYTES_PER_SKETCH |
static int |
DEFAULT_SKETCH_SIZE_IN_BYTES |
Constructor and Description |
---|
WikiMetricLoader()
Constructs a WikiMetricLoader using the default sketch size.
|
WikiMetricLoader(int sketchSize)
Constructs a WikiMetricLoader using the given sketch size.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildMetricMakers(MetricDictionary metricDictionary)
(Re)Initialize the metric makers with the given metric dictionary.
|
void |
loadMetricDictionary(MetricDictionary metricDictionary)
Load metrics and populate the metric dictionary.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadMetricDictionary
public static final int BYTES_PER_KILOBYTE
public static final int DEFAULT_KILOBYTES_PER_SKETCH
public static final int DEFAULT_SKETCH_SIZE_IN_BYTES
public WikiMetricLoader()
public WikiMetricLoader(int sketchSize)
sketchSize
- Sketch size, in number of bytes, to use for sketch operationsprotected void buildMetricMakers(MetricDictionary metricDictionary)
metricDictionary
- Metric dictionary to use for generating the metric makers.public void loadMetricDictionary(MetricDictionary metricDictionary)
MetricLoader
loadMetricDictionary
in interface MetricLoader
metricDictionary
- The dictionary that will be loaded with metricsCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.