From c41f9b33cbf7ccdd65d073c1436ca206c8913b3e Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 7 Dec 2012 19:10:59 +0000 Subject: [PATCH] fix typo: samping -> sampling git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1418443 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/facet/search/sampling/SamplingParams.java | 4 ++-- .../facet/taxonomy/directory/DirectoryTaxonomyWriter.java | 4 ++-- .../lucene/facet/search/sampling/BaseSampleTestTopK.java | 2 +- .../lucene/facet/search/sampling/OversampleWithDepthTest.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/SamplingParams.java b/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/SamplingParams.java index a50b7acd655..3687e0b699b 100644 --- a/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/SamplingParams.java +++ b/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/SamplingParams.java @@ -125,8 +125,8 @@ public class SamplingParams { * Set a sampling-threshold * @see #getSamplingThreshold() */ - public void setSampingThreshold(int sampingThreshold) { - this.samplingThreshold = sampingThreshold; + public void setSampingThreshold(int samplingThreshold) { + this.samplingThreshold = samplingThreshold; } /** diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/directory/DirectoryTaxonomyWriter.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/directory/DirectoryTaxonomyWriter.java index c56dee90fac..ceafb80e097 100644 --- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/directory/DirectoryTaxonomyWriter.java +++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/directory/DirectoryTaxonomyWriter.java @@ -30,7 +30,7 @@ import org.apache.lucene.facet.taxonomy.writercache.cl2o.Cl2oTaxonomyWriterCache import org.apache.lucene.facet.taxonomy.writercache.lru.LruTaxonomyWriterCache; import org.apache.lucene.index.AtomicReader; import org.apache.lucene.index.AtomicReaderContext; -import org.apache.lucene.index.CorruptIndexException; +import org.apache.lucene.index.CorruptIndexException; // javadocs import org.apache.lucene.index.DirectoryReader; import org.apache.lucene.index.DocsEnum; import org.apache.lucene.index.IndexReader; @@ -45,7 +45,7 @@ import org.apache.lucene.index.TermsEnum; import org.apache.lucene.index.TieredMergePolicy; import org.apache.lucene.store.AlreadyClosedException; import org.apache.lucene.store.Directory; -import org.apache.lucene.store.LockObtainFailedException; +import org.apache.lucene.store.LockObtainFailedException; // javadocs import org.apache.lucene.store.NativeFSLockFactory; import org.apache.lucene.store.SimpleFSLockFactory; import org.apache.lucene.util.BytesRef; diff --git a/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/BaseSampleTestTopK.java b/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/BaseSampleTestTopK.java index 8b26d0ff72f..4382029bbbc 100644 --- a/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/BaseSampleTestTopK.java +++ b/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/BaseSampleTestTopK.java @@ -68,7 +68,7 @@ public abstract class BaseSampleTestTopK extends BaseTestTopK { * Lots of randomly generated data is being indexed, and later on a "90% docs" faceted search * is performed. The results are compared to non-sampled ones. */ - public void testCountUsingSamping() throws Exception { + public void testCountUsingSampling() throws Exception { boolean useRandomSampler = random().nextBoolean(); for (int partitionSize : partitionSizes) { try { diff --git a/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/OversampleWithDepthTest.java b/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/OversampleWithDepthTest.java index 63cc2c10e3d..15ea4842ea9 100644 --- a/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/OversampleWithDepthTest.java +++ b/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/OversampleWithDepthTest.java @@ -52,7 +52,7 @@ import org.junit.Test; public class OversampleWithDepthTest extends LuceneTestCase { @Test - public void testCountWithdepthUsingSamping() throws Exception, IOException { + public void testCountWithdepthUsingSampling() throws Exception, IOException { Directory indexDir = newDirectory(); Directory taxoDir = newDirectory();