public void setConfig(Config config) {super.setConfig(config);random = new Random(config.get("rand.seed", 13));maxDocFacets = config.get("max.doc.facets", 10);maxDims = config.get("max.doc.facets.dims", 5);maxFacetDepth = config.get("max.facet.depth", 3);if (maxFacetDepth < 2) {throw new IllegalArgumentException("max.facet.depth must be at least 2; got: " + maxFacetDepth);}maxValue = maxDocFacets * maxFacetDepth;}
public override void SetConfig(Config config){base.SetConfig(config);random = new Random(config.Get("rand.seed", 13));maxDocFacets = config.Get("max.doc.facets", 10);maxDims = config.Get("max.doc.facets.dims", 5);maxFacetDepth = config.Get("max.facet.depth", 3);if (maxFacetDepth < 2){throw new ArgumentException("max.facet.depth must be at least 2; got: " + maxFacetDepth);}maxValue = maxDocFacets * maxFacetDepth;}