Class ResettableByteBuffersIndexOutput
java.lang.Object
org.apache.lucene.store.DataOutput
org.apache.lucene.store.IndexOutput
org.apache.cassandra.index.sai.disk.ResettableByteBuffersIndexOutput
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
MetadataWriter.Builder
public class ResettableByteBuffersIndexOutput
extends org.apache.lucene.store.IndexOutput
A wrapper around
ByteBuffersIndexOutput that adds several methods that interact
with the underlying delegate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcopyBytes(org.apache.lucene.store.DataInput input, long numBytes) voidcopyTo(org.apache.lucene.store.IndexOutput out) longlongintintSize()voidreset()byte[]toString()voidwriteByte(byte b) voidwriteBytes(byte[] b, int length) voidwriteBytes(byte[] b, int offset, int length) voidwriteInt(int i) voidwriteLong(long i) voidwriteMapOfStrings(Map<String, String> map) voidwriteSetOfStrings(Set<String> set) voidwriteShort(short i) voidMethods inherited from class org.apache.lucene.store.IndexOutput
alignFilePointer, alignOffset, getNameMethods inherited from class org.apache.lucene.store.DataOutput
writeVInt, writeVLong, writeZInt, writeZLong
-
Constructor Details
-
ResettableByteBuffersIndexOutput
-
ResettableByteBuffersIndexOutput
-
-
Method Details
-
copyTo
- Throws:
IOException
-
intSize
public int intSize() -
toArrayCopy
public byte[] toArrayCopy() -
reset
public void reset() -
toString
- Overrides:
toStringin classorg.apache.lucene.store.IndexOutput
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.lucene.store.IndexOutput- Throws:
IOException
-
getFilePointer
public long getFilePointer()- Specified by:
getFilePointerin classorg.apache.lucene.store.IndexOutput
-
getChecksum
- Specified by:
getChecksumin classorg.apache.lucene.store.IndexOutput- Throws:
IOException
-
writeByte
- Specified by:
writeBytein classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeBytes
- Overrides:
writeBytesin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeInt
- Overrides:
writeIntin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeShort
- Overrides:
writeShortin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeLong
- Overrides:
writeLongin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeString
- Overrides:
writeStringin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
copyBytes
- Overrides:
copyBytesin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeMapOfStrings
- Overrides:
writeMapOfStringsin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-
writeSetOfStrings
- Overrides:
writeSetOfStringsin classorg.apache.lucene.store.DataOutput- Throws:
IOException
-