Make contrib/db and contrib/memory compile with changes from LUCENE-755

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518792 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Busch 2007-03-15 22:35:52 +00:00
parent b5a0c0c3de
commit b9edb2867f
3 changed files with 19 additions and 4 deletions

View File

@ -90,9 +90,8 @@ public class JEIndexOutput extends IndexOutput {
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;

View File

@ -91,11 +91,10 @@ public class DbIndexOutput extends IndexOutput {
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;

View File

@ -894,6 +894,23 @@ public class MemoryIndex {
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();
}
};
}