org.apache.lucene.store.db
Class DbIndexOutput
java.lang.Object
org.apache.lucene.store.IndexOutput
org.apache.lucene.store.db.DbIndexOutput
public class DbIndexOutput
- extends IndexOutput
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLOCK_SHIFT
public static final int BLOCK_SHIFT
- The size of data blocks, currently 16k (2^14), is determined by this
constant.
- See Also:
- Constant Field Values
BLOCK_LEN
public static final int BLOCK_LEN
- See Also:
- Constant Field Values
BLOCK_MASK
public static final int BLOCK_MASK
- See Also:
- Constant Field Values
position
protected long position
length
protected long length
directory
protected DbDirectory directory
block
protected Block block
file
protected File file
DbIndexOutput
protected DbIndexOutput(DbDirectory directory,
java.lang.String name,
boolean create)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in class IndexOutput
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in class IndexOutput
- Throws:
java.io.IOException
writeByte
public void writeByte(byte b)
throws java.io.IOException
- Specified by:
writeByte
in class IndexOutput
- Throws:
java.io.IOException
writeBytes
public void writeBytes(byte[] b,
int offset,
int len)
throws java.io.IOException
- Specified by:
writeBytes
in class IndexOutput
- Throws:
java.io.IOException
length
public long length()
throws java.io.IOException
- Specified by:
length
in class IndexOutput
- Throws:
java.io.IOException
seek
public void seek(long pos)
throws java.io.IOException
- Specified by:
seek
in class IndexOutput
- Throws:
java.io.IOException
getFilePointer
public long getFilePointer()
- Specified by:
getFilePointer
in class IndexOutput
Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.