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