You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2015/12/02 00:19:35 UTC

svn commit: r1717554 - in /lucene/dev/trunk/solr: CHANGES.txt core/src/java/org/apache/solr/util/ConcurrentLFUCache.java core/src/java/org/apache/solr/util/ConcurrentLRUCache.java core/src/java/org/apache/solr/util/hll/ISchemaVersion.java

Author: hossman
Date: Tue Dec  1 23:19:35 2015
New Revision: 1717554

URL: http://svn.apache.org/viewvc?rev=1717554&view=rev
Log:
SOLR-8333: Several API tweaks so that public APIs were no longer refering to private classes

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/ConcurrentLFUCache.java
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/ConcurrentLRUCache.java
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/hll/ISchemaVersion.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1717554&r1=1717553&r2=1717554&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Tue Dec  1 23:19:35 2015
@@ -212,6 +212,9 @@ Other Changes
 * SOLR-8338: in OverseerTest replace strings such as "collection1" and "state" with variable
   or enum equivalent  (Christine Poerschke)
 
+* SOLR-8333: Several API tweaks so that public APIs were no longer refering to private classes
+  (ehatcher, Shawn Heisey, hossman)
+
 ==================  5.4.0 ==================
 
 Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/ConcurrentLFUCache.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/ConcurrentLFUCache.java?rev=1717554&r1=1717553&r2=1717554&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/ConcurrentLFUCache.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/ConcurrentLFUCache.java Tue Dec  1 23:19:35 2015
@@ -326,7 +326,7 @@ public class ConcurrentLFUCache<K, V> im
     return map;
   }
 
-  private static class CacheEntry<K, V> implements Comparable<CacheEntry<K, V>> {
+  public static class CacheEntry<K, V> implements Comparable<CacheEntry<K, V>> {
     K key;
     V value;
     volatile AtomicLong hits = new AtomicLong(0);

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/ConcurrentLRUCache.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/ConcurrentLRUCache.java?rev=1717554&r1=1717553&r2=1717554&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/ConcurrentLRUCache.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/ConcurrentLRUCache.java Tue Dec  1 23:19:35 2015
@@ -481,7 +481,7 @@ public class ConcurrentLRUCache<K,V> imp
     return map;
   }
 
-  private static class CacheEntry<K,V> implements Comparable<CacheEntry<K,V>> {
+  public static class CacheEntry<K,V> implements Comparable<CacheEntry<K,V>> {
     K key;
     V value;
     volatile long lastAccessed = 0;

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/hll/ISchemaVersion.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/hll/ISchemaVersion.java?rev=1717554&r1=1717553&r2=1717554&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/hll/ISchemaVersion.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/hll/ISchemaVersion.java Tue Dec  1 23:19:35 2015
@@ -21,7 +21,7 @@ package org.apache.solr.util.hll;
  * A serialization schema for HLLs. Reads and writes HLL metadata to
  * and from <code>byte[]</code> representations.
  */
-interface ISchemaVersion {
+public interface ISchemaVersion {
     /**
      * The number of metadata bytes required for a serialized HLL of the
      * specified type.