Class IndexOutputWriter
java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.apache.cassandra.index.sai.disk.io.IndexOutputWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
@NotThreadSafe
public class IndexOutputWriter
extends org.apache.lucene.store.IndexOutput
This is a wrapper over a Cassandra
SequentialWriter that provides a Lucene IndexOutput
interface for the Lucene index writers.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsSequentialWriterassociated with this writer.voidclose()longgetFile()longvoidskipBytes(long length) toString()voidwriteByte(byte b) voidwriteBytes(byte[] bytes, int offset, int len) Methods inherited from class org.apache.lucene.store.IndexOutput
alignFilePointer, alignOffset, getNameMethods inherited from class org.apache.lucene.store.DataOutput
copyBytes, writeBytes, writeInt, writeLong, writeMapOfStrings, writeSetOfStrings, writeShort, writeString, writeVInt, writeVLong, writeZInt, writeZLong
-
Constructor Details
-
IndexOutputWriter
-
-
Method Details
-
skipBytes
- Throws:
IOException
-
getFile
-
getChecksum
- Specified by:
getChecksumin classorg.apache.lucene.store.IndexOutput- Throws:
IOException
-
getFilePointer
public long getFilePointer()- Specified by:
getFilePointerin classorg.apache.lucene.store.IndexOutput
-
writeBytes
- Specified by:
writeBytesin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeByte
- Specified by:
writeBytein classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.lucene.store.IndexOutput
-
toString
- Overrides:
toStringin classorg.apache.lucene.store.IndexOutput
-
asSequentialWriter
ReturnsSequentialWriterassociated with this writer. Convenient when interacting with Cassandra codebase to write files to disk. Note that all bytes written to the returned writer will still contribute to the checksum.- Returns:
SequentialWriterassociated with this writer
-