Apache Lucene open-source search software
LUCENE-5339: remove writercache sub-packages
Michael McCandlessb3a77738fa1b
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.javaindex 7aad3867b5f..00907742291 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@@ -26,8 +26,8 @@ import org.apache.lucene.facet.taxonomy.FacetLabel;import org.apache.lucene.facet.taxonomy.TaxonomyReader;import org.apache.lucene.facet.taxonomy.TaxonomyWriter;import org.apache.lucene.facet.taxonomy.writercache.TaxonomyWriterCache;-import org.apache.lucene.facet.taxonomy.writercache.cl2o.Cl2oTaxonomyWriterCache;-import org.apache.lucene.facet.taxonomy.writercache.lru.LruTaxonomyWriterCache;+import org.apache.lucene.facet.taxonomy.writercache.Cl2oTaxonomyWriterCache;+import org.apache.lucene.facet.taxonomy.writercache.LruTaxonomyWriterCache;import org.apache.lucene.index.AtomicReader;import org.apache.lucene.index.AtomicReaderContext;import org.apache.lucene.index.CorruptIndexException; // javadocsdiff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CategoryPathUtils.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CategoryPathUtils.javasimilarity index 97%rename from lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CategoryPathUtils.javarename to lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CategoryPathUtils.javaindex b9167b03000..1ea5e97808e 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CategoryPathUtils.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CategoryPathUtils.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.cl2o;+package org.apache.lucene.facet.taxonomy.writercache;import org.apache.lucene.facet.taxonomy.FacetLabel;diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CharBlockArray.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CharBlockArray.javasimilarity index 98%rename from lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CharBlockArray.javarename to lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CharBlockArray.javaindex e0707de5aab..5c7d46fd6af 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CharBlockArray.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CharBlockArray.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.cl2o;+package org.apache.lucene.facet.taxonomy.writercache;import java.io.IOException;import java.io.InputStream;diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/Cl2oTaxonomyWriterCache.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/Cl2oTaxonomyWriterCache.javasimilarity index 98%rename from lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/Cl2oTaxonomyWriterCache.javarename to lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/Cl2oTaxonomyWriterCache.javaindex 742133844cf..abbac2de240 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/Cl2oTaxonomyWriterCache.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/Cl2oTaxonomyWriterCache.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.cl2o;+package org.apache.lucene.facet.taxonomy.writercache;import java.util.concurrent.locks.ReadWriteLock;import java.util.concurrent.locks.ReentrantReadWriteLock;diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CollisionMap.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CollisionMap.javasimilarity index 99%rename from lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CollisionMap.javarename to lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CollisionMap.javaindex f59ed2e67d7..bcd3b9a7a35 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CollisionMap.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CollisionMap.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.cl2o;+package org.apache.lucene.facet.taxonomy.writercache;import java.util.Iterator;import java.util.NoSuchElementException;diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CompactLabelToOrdinal.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CompactLabelToOrdinal.javasimilarity index 99%rename from lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CompactLabelToOrdinal.javarename to lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CompactLabelToOrdinal.javaindex da2883df899..fed23edf86c 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/CompactLabelToOrdinal.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/CompactLabelToOrdinal.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.cl2o;+package org.apache.lucene.facet.taxonomy.writercache;/** Licensed to the Apache Software Foundation (ASF) under one or morediff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/LabelToOrdinal.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/LabelToOrdinal.javasimilarity index 96%rename from lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/LabelToOrdinal.javarename to lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/LabelToOrdinal.javaindex e1c8360139a..33b60fe0faa 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/LabelToOrdinal.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/LabelToOrdinal.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.cl2o;+package org.apache.lucene.facet.taxonomy.writercache;import org.apache.lucene.facet.taxonomy.FacetLabel;diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/LruTaxonomyWriterCache.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/LruTaxonomyWriterCache.javasimilarity index 98%rename from lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/LruTaxonomyWriterCache.javarename to lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/LruTaxonomyWriterCache.javaindex 4aac2cd1d4a..7bdbb2c7a62 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/LruTaxonomyWriterCache.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/LruTaxonomyWriterCache.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.lru;+ package org.apache.lucene.facet.taxonomy.writercache;import org.apache.lucene.facet.taxonomy.FacetLabel;import org.apache.lucene.facet.taxonomy.writercache.TaxonomyWriterCache;diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/NameHashIntCacheLRU.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/NameHashIntCacheLRU.javasimilarity index 96%rename from lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/NameHashIntCacheLRU.javarename to lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/NameHashIntCacheLRU.javaindex ef062d78893..9743d4b2153 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/NameHashIntCacheLRU.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/NameHashIntCacheLRU.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.lru;+package org.apache.lucene.facet.taxonomy.writercache;import org.apache.lucene.facet.taxonomy.FacetLabel;diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/NameIntCacheLRU.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/NameIntCacheLRU.javasimilarity index 98%rename from lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/NameIntCacheLRU.javarename to lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/NameIntCacheLRU.javaindex 2f2c4878283..f43b6b1971d 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/NameIntCacheLRU.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/NameIntCacheLRU.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.lru;+package org.apache.lucene.facet.taxonomy.writercache;import java.util.HashMap;import java.util.Iterator;diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/package.html b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/package.htmldeleted file mode 100644index 9a495a10470..00000000000--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/cl2o/package.html+++ /dev/null@@ -1,27 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<html>-<head>-<title>Category->Ordinal caching implementation using an optimized data-structures</title>-</head>-<body>- <h1>Category->Ordinal caching implementation using an optimized data-structures</h1>-- The internal map data structure consumes less memory (~30%) and is faster (~50%) compared to a- Java HashMap<String, Integer>.-</body>-</html>\ No newline at end of filediff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/package.html b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/package.htmldeleted file mode 100644index b430d6b4ed4..00000000000--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/writercache/lru/package.html+++ /dev/null@@ -1,25 +0,0 @@-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->-<html>-<head>-<title>An LRU cache implementation for the CategoryPath to Ordinal map</title>-</head>-<body>- <h1>An LRU cache implementation for the CategoryPath to Ordinal map</h1>--</body>-</html>\ No newline at end of filediff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestConcurrentFacetedIndexing.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestConcurrentFacetedIndexing.javaindex 70f572bb877..f0bc44c7c6f 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestConcurrentFacetedIndexing.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestConcurrentFacetedIndexing.java@@ -13,8 +13,8 @@ import org.apache.lucene.facet.FacetTestCase;import org.apache.lucene.facet.FacetsConfig;import org.apache.lucene.facet.taxonomy.FacetLabel;import org.apache.lucene.facet.taxonomy.writercache.TaxonomyWriterCache;-import org.apache.lucene.facet.taxonomy.writercache.cl2o.Cl2oTaxonomyWriterCache;-import org.apache.lucene.facet.taxonomy.writercache.lru.LruTaxonomyWriterCache;+import org.apache.lucene.facet.taxonomy.writercache.Cl2oTaxonomyWriterCache;+import org.apache.lucene.facet.taxonomy.writercache.LruTaxonomyWriterCache;import org.apache.lucene.index.IndexWriter;import org.apache.lucene.index.IndexWriterConfig.OpenMode;import org.apache.lucene.store.Directory;diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyWriter.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyWriter.javaindex e5f88483315..01800ebdad1 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyWriter.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyWriter.java@@ -18,8 +18,8 @@ import org.apache.lucene.facet.taxonomy.FacetLabel;import org.apache.lucene.facet.taxonomy.TaxonomyReader;import org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter.MemoryOrdinalMap;import org.apache.lucene.facet.taxonomy.writercache.TaxonomyWriterCache;-import org.apache.lucene.facet.taxonomy.writercache.cl2o.Cl2oTaxonomyWriterCache;-import org.apache.lucene.facet.taxonomy.writercache.lru.LruTaxonomyWriterCache;+import org.apache.lucene.facet.taxonomy.writercache.Cl2oTaxonomyWriterCache;+import org.apache.lucene.facet.taxonomy.writercache.LruTaxonomyWriterCache;import org.apache.lucene.index.DirectoryReader;import org.apache.lucene.index.IndexReader;import org.apache.lucene.index.IndexWriter;diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/cl2o/TestCharBlockArray.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/TestCharBlockArray.javasimilarity index 98%rename from lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/cl2o/TestCharBlockArray.javarename to lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/TestCharBlockArray.javaindex 76f8c165cf7..3f5ec18ab86 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/cl2o/TestCharBlockArray.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/TestCharBlockArray.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.cl2o;+package org.apache.lucene.facet.taxonomy.writercache;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/cl2o/TestCompactLabelToOrdinal.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/TestCompactLabelToOrdinal.javasimilarity index 98%rename from lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/cl2o/TestCompactLabelToOrdinal.javarename to lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/TestCompactLabelToOrdinal.javaindex 51b154f654c..5b2f700099e 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/cl2o/TestCompactLabelToOrdinal.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/writercache/TestCompactLabelToOrdinal.java@@ -1,4 +1,4 @@-package org.apache.lucene.facet.taxonomy.writercache.cl2o;+package org.apache.lucene.facet.taxonomy.writercache;import java.io.File;import java.nio.ByteBuffer;