public class DbIndexOutput extends IndexOutput
| Modifier and Type | Field and Description |
|---|---|
protected Block |
block |
static int |
BLOCK_LEN |
static int |
BLOCK_MASK |
static int |
BLOCK_SHIFT
The size of data blocks, currently 16k (2^14), is determined by this
constant.
|
protected DbDirectory |
directory |
protected File |
file |
protected long |
length |
protected long |
position |
| Modifier | Constructor and Description |
|---|---|
protected |
DbIndexOutput(DbDirectory directory,
String name,
boolean create) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
long |
getFilePointer() |
long |
length() |
void |
seek(long pos) |
void |
writeByte(byte b) |
void |
writeBytes(byte[] b,
int offset,
int len) |
copyBytes, setLength, writeBytes, writeChars, writeChars, writeInt, writeLong, writeString, writeVInt, writeVLongpublic static final int BLOCK_SHIFT
public static final int BLOCK_LEN
public static final int BLOCK_MASK
protected long position
protected long length
protected DbDirectory directory
protected Block block
protected File file
protected DbIndexOutput(DbDirectory directory, String name, boolean create) throws IOException
IOExceptionpublic void close()
throws IOException
close in class IndexOutputIOExceptionpublic void flush()
throws IOException
flush in class IndexOutputIOExceptionpublic void writeByte(byte b)
throws IOException
writeByte in class IndexOutputIOExceptionpublic void writeBytes(byte[] b,
int offset,
int len)
throws IOException
writeBytes in class IndexOutputIOExceptionpublic long length()
throws IOException
length in class IndexOutputIOExceptionpublic void seek(long pos)
throws IOException
seek in class IndexOutputIOExceptionpublic long getFilePointer()
getFilePointer in class IndexOutputCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.