mirror of https://github.com/apache/lucene.git
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:
parent
b5a0c0c3de
commit
b9edb2867f
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue