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,
java.lang.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, java.lang.String name, boolean create) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in class IndexOutputjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in class IndexOutputjava.io.IOExceptionpublic void writeByte(byte b)
throws java.io.IOException
writeByte in class IndexOutputjava.io.IOExceptionpublic void writeBytes(byte[] b,
int offset,
int len)
throws java.io.IOException
writeBytes in class IndexOutputjava.io.IOExceptionpublic long length()
throws java.io.IOException
length in class IndexOutputjava.io.IOExceptionpublic void seek(long pos)
throws java.io.IOException
seek in class IndexOutputjava.io.IOExceptionpublic long getFilePointer()
getFilePointer in class IndexOutputCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.