public class JEIndexOutput 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 JEDirectory |
directory |
protected File |
file |
protected long |
length |
protected long |
position |
Modifier | Constructor and Description |
---|---|
protected |
JEIndexOutput(JEDirectory 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, writeVLong
public static final int BLOCK_SHIFT
public static final int BLOCK_LEN
public static final int BLOCK_MASK
protected long position
protected long length
protected JEDirectory directory
protected Block block
protected File file
protected JEIndexOutput(JEDirectory directory, String name, boolean create) throws IOException
IOException
public void close() throws IOException
close
in class IndexOutput
IOException
public void flush() throws IOException
flush
in class IndexOutput
IOException
public void writeByte(byte b) throws IOException
writeByte
in class IndexOutput
IOException
public void writeBytes(byte[] b, int offset, int len) throws IOException
writeBytes
in class IndexOutput
IOException
public long length() throws IOException
length
in class IndexOutput
IOException
public void seek(long pos) throws IOException
seek
in class IndexOutput
IOException
public long getFilePointer()
getFilePointer
in class IndexOutput
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.