lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From busc...@apache.org
Subject svn commit: r518792 - in /lucene/java/trunk/contrib: db/bdb-je/src/java/org/apache/lucene/store/je/JEIndexOutput.java db/bdb/src/java/org/apache/lucene/store/db/DbIndexOutput.java memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
Date Thu, 15 Mar 2007 22:35:52 GMT
Author: buschmi
Date: Thu Mar 15 15:35:52 2007
New Revision: 518792

URL: http://svn.apache.org/viewvc?view=rev&rev=518792
Log:
Make contrib/db and contrib/memory compile with changes from LUCENE-755

Modified:
    lucene/java/trunk/contrib/db/bdb-je/src/java/org/apache/lucene/store/je/JEIndexOutput.java
    lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/DbIndexOutput.java
    lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java

Modified: lucene/java/trunk/contrib/db/bdb-je/src/java/org/apache/lucene/store/je/JEIndexOutput.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/db/bdb-je/src/java/org/apache/lucene/store/je/JEIndexOutput.java?view=diff&rev=518792&r1=518791&r2=518792
==============================================================================
--- lucene/java/trunk/contrib/db/bdb-je/src/java/org/apache/lucene/store/je/JEIndexOutput.java
(original)
+++ lucene/java/trunk/contrib/db/bdb-je/src/java/org/apache/lucene/store/je/JEIndexOutput.java
Thu Mar 15 15:35:52 2007
@@ -90,9 +90,8 @@
             length = position;
     }
 
-    public void writeBytes(byte[] b, int len) throws IOException {
+    public void writeBytes(byte[] b, int offset, int len) throws IOException {
         int blockPos = (int) (position & BLOCK_MASK);
-        int offset = 0;
 
         while (blockPos + len >= BLOCK_LEN) {
             int blockLen = BLOCK_LEN - blockPos;

Modified: lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/DbIndexOutput.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/DbIndexOutput.java?view=diff&rev=518792&r1=518791&r2=518792
==============================================================================
--- lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/DbIndexOutput.java
(original)
+++ lucene/java/trunk/contrib/db/bdb/src/java/org/apache/lucene/store/db/DbIndexOutput.java
Thu Mar 15 15:35:52 2007
@@ -91,11 +91,10 @@
             length = position;
     }
 
-    public void writeBytes(byte[] b, int len)
+    public void writeBytes(byte[] b, int offset, int len)
         throws IOException
     {
         int blockPos = (int) (position & BLOCK_MASK);
-        int offset = 0;
 
         while (blockPos + len >= BLOCK_LEN) {
             int blockLen = BLOCK_LEN - blockPos;

Modified: lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java?view=diff&rev=518792&r1=518791&r2=518792
==============================================================================
--- lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
(original)
+++ lucene/java/trunk/contrib/memory/src/java/org/apache/lucene/index/memory/MemoryIndex.java
Thu Mar 15 15:35:52 2007
@@ -894,6 +894,23 @@
           if (DEBUG) System.err.println(".nextPosition: " + pos);
           return pos;
         }
+        
+        /**
+         * Not implemented.
+         * @throws UnsupportedOperationException
+         */
+        public int getPayloadLength() {
+          throw new UnsupportedOperationException();
+        }
+         
+        /**
+         * Not implemented.
+         * @throws UnsupportedOperationException
+         */
+        public byte[] getPayload(byte[] data, int offset) throws IOException {
+          throw new UnsupportedOperationException();
+        }
+
       };
     }
   



Mime
View raw message