You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2014/12/09 22:08:59 UTC

svn commit: r1644184 - /uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSLeafIndexImpl.java

Author: schor
Date: Tue Dec  9 21:08:59 2014
New Revision: 1644184

URL: http://svn.apache.org/r1644184
Log:
[UIMA-4135] support multi-add-back (use case: only where multiple add2indices of the same identical FS allowed)

Modified:
    uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSLeafIndexImpl.java

Modified: uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSLeafIndexImpl.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSLeafIndexImpl.java?rev=1644184&r1=1644183&r2=1644184&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSLeafIndexImpl.java (original)
+++ uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSLeafIndexImpl.java Tue Dec  9 21:08:59 2014
@@ -131,6 +131,8 @@ public abstract class FSLeafIndexImpl<T
   }
 
   abstract boolean insert(int fs);
+  
+  abstract boolean insert(int fs, int count);  // for bulk addback
 
   /**
    * @param fs -
@@ -482,4 +484,14 @@ public abstract class FSLeafIndexImpl<T
       return this.ll_iterator();
   }
 
+  @Override
+  public FSIndex withSnapshotIterators() {
+    // should never be called
+    // this is an artifact of the fact that FSLeafIndexImpl has a super type of FSIndex
+    //   which seems incorrect?
+    throw new UnsupportedOperationException();
+  }
+  
+  
+
 }