org.apache.lucene.store.je

Class JEIndexOutput

public class JEIndexOutput extends IndexOutput

Port of Andi Vajda's DbDirectory to Java Edition of Berkeley Database

Author: Aaron Donovan

Field Summary
protected Blockblock
static intBLOCK_LEN
static intBLOCK_MASK
static intBLOCK_SHIFT
The size of data blocks, currently 16k (2^14), is determined by this constant.
protected JEDirectorydirectory
protected Filefile
protected longlength
protected longposition
Constructor Summary
protected JEIndexOutput(JEDirectory directory, String name, boolean create)
Method Summary
voidclose()
voidflush()
longgetFilePointer()
longlength()
voidseek(long pos)
voidwriteByte(byte b)
voidwriteBytes(byte[] b, int offset, int len)

Field Detail

block

protected Block block

BLOCK_LEN

public static final int BLOCK_LEN

BLOCK_MASK

public static final int BLOCK_MASK

BLOCK_SHIFT

public static final int BLOCK_SHIFT
The size of data blocks, currently 16k (2^14), is determined by this constant.

directory

protected JEDirectory directory

file

protected File file

length

protected long length

position

protected long position

Constructor Detail

JEIndexOutput

protected JEIndexOutput(JEDirectory directory, String name, boolean create)

Method Detail

close

public void close()

flush

public void flush()

getFilePointer

public long getFilePointer()

length

public long length()

seek

public void seek(long pos)

writeByte

public void writeByte(byte b)

writeBytes

public void writeBytes(byte[] b, int offset, int len)
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.