org.compass.needle.coherence
Class CoherenceMemIndexOutput
java.lang.Object
org.apache.lucene.store.IndexOutput
org.compass.needle.coherence.CoherenceMemIndexOutput
class CoherenceMemIndexOutput
- extends IndexOutput
Only use buckets to write the file to the index. Writes a header file and one
or more buckets that hold the file content.
Allows only seeking to the first bucket, which is what Lucene does with typical
bucket size.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoherenceMemIndexOutput
public CoherenceMemIndexOutput(CoherenceDirectory dir,
String fileName)
throws IOException
- Throws:
IOException
writeByte
public void writeByte(byte b)
throws IOException
- Specified by:
writeByte in class IndexOutput
- Throws:
IOException
writeBytes
public void writeBytes(byte[] b,
int offset,
int len)
throws IOException
- Specified by:
writeBytes in class IndexOutput
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush in class IndexOutput
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in class IndexOutput
- Throws:
IOException
getFilePointer
public long getFilePointer()
- Specified by:
getFilePointer in class IndexOutput
seek
public void seek(long pos)
throws IOException
- Specified by:
seek in class IndexOutput
- Throws:
IOException
length
public long length()
throws IOException
- Specified by:
length in class IndexOutput
- Throws:
IOException
Copyright (c) 2004-2008 The Compass Project.