Author: schor
Date: Fri Sep 16 21:13:24 2016
New Revision: 1761092

URL: http://svn.apache.org/viewvc?rev=1761092&view=rev
Log:
no Jira - add some comments

Modified:
    
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/FsIndex_singletype.java

Modified: 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/FsIndex_singletype.java
URL: 
http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/FsIndex_singletype.java?rev=1761092&r1=1761091&r2=1761092&view=diff
==============================================================================
--- 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/FsIndex_singletype.java
 (original)
+++ 
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/main/java/org/apache/uima/cas/impl/FsIndex_singletype.java
 Fri Sep 16 21:13:24 2016
@@ -36,7 +36,7 @@ import org.apache.uima.jcas.cas.TOP;
 /**
  * The common (among all index kinds - set, sorted, bag) info for an index 
over 1 type (excluding subtypes)
  *   The name "Leaf" is a misnomer - it's just over one type excluding any 
subtypes if they exist
- * Subtypes define the actual index repository (integers indexing the CAS) for 
each kind.
+ * SubClasses define the actual index repository for each kind.
  * 
  * @param <T> the Java cover class type for this index, passed along to 
(wrapped) iterators producing Java cover classes
  */
@@ -44,6 +44,10 @@ public abstract class FsIndex_singletype
 
   private final static String[] indexTypes = new String[] {"Sorted", "Set", 
"Bag", "DefaultBag"};
   
+  /**
+   * shares equal FSIndexComparatorImpl comparatorForIndexSpecs objects
+   * updates and accesses are synchronized
+   */
   private final static WeakHashMap<FSIndexComparatorImpl, 
WeakReference<FSIndexComparatorImpl>> comparatorCache = 
       new WeakHashMap<>();
 
@@ -52,6 +56,9 @@ public abstract class FsIndex_singletype
   // A reference to the low-level CAS.
   final protected CASImpl casImpl;
   
+  /**
+   * comparator for an index, passed in as an argument to the constructor
+   */
   final private FSIndexComparatorImpl comparatorForIndexSpecs;
 
   /***********  Info about Index Comparator (not used for bag ***********


Reply via email to