org.apache.lucene.store.db

Class DbIndexOutput

public class DbIndexOutput extends IndexOutput

Author: Andi Vajda

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 DbDirectorydirectory
protected Filefile
protected longlength
protected longposition
Constructor Summary
protected DbIndexOutput(DbDirectory 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 DbDirectory directory

file

protected File file

length

protected long length

position

protected long position

Constructor Detail

DbIndexOutput

protected DbIndexOutput(DbDirectory 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.