add --shared
[pylucene.git] / lucene-java-3.4.0 / lucene / contrib / facet / src / test / org / apache / lucene / facet / search / sampling / SamplingAccumulatorTest.java
1 package org.apache.lucene.facet.search.sampling;
2
3 import org.apache.lucene.index.IndexReader;
4
5 import org.apache.lucene.facet.search.FacetsAccumulator;
6 import org.apache.lucene.facet.search.params.FacetSearchParams;
7 import org.apache.lucene.facet.taxonomy.TaxonomyReader;
8
9 /**
10  * Licensed to the Apache Software Foundation (ASF) under one or more
11  * contributor license agreements.  See the NOTICE file distributed with
12  * this work for additional information regarding copyright ownership.
13  * The ASF licenses this file to You under the Apache License, Version 2.0
14  * (the "License"); you may not use this file except in compliance with
15  * the License.  You may obtain a copy of the License at
16  *
17  *     http://www.apache.org/licenses/LICENSE-2.0
18  *
19  * Unless required by applicable law or agreed to in writing, software
20  * distributed under the License is distributed on an "AS IS" BASIS,
21  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22  * See the License for the specific language governing permissions and
23  * limitations under the License.
24  */
25
26 public class SamplingAccumulatorTest extends BaseSampleTestTopK {
27
28   @Override
29   protected FacetsAccumulator getSamplingAccumulator(Sampler sampler,
30       TaxonomyReader taxoReader, IndexReader indexReader,
31       FacetSearchParams searchParams) {
32     return new SamplingAccumulator(sampler, searchParams, indexReader,
33         taxoReader);
34   }
35 }