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 Details

    • ResettableByteBuffersIndexOutput

      public ResettableByteBuffersIndexOutput(String name)
    • ResettableByteBuffersIndexOutput

      public ResettableByteBuffersIndexOutput(int expectedSize, String name)
  • Method Details

    • copyTo

      public void copyTo(org.apache.lucene.store.IndexOutput out) throws IOException
      Throws:
      IOException
    • intSize

      public int intSize()
    • toArrayCopy

      public byte[] toArrayCopy()
    • reset

      public void reset()
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.lucene.store.IndexOutput
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class org.apache.lucene.store.IndexOutput
      Throws:
      IOException
    • getFilePointer

      public long getFilePointer()
      Specified by:
      getFilePointer in class org.apache.lucene.store.IndexOutput
    • getChecksum

      public long getChecksum() throws IOException
      Specified by:
      getChecksum in class org.apache.lucene.store.IndexOutput
      Throws:
      IOException
    • writeByte

      public void writeByte(byte b) throws IOException
      Specified by:
      writeByte in class org.apache.lucene.store.DataOutput
      Throws:
      IOException
    • writeBytes

      public void writeBytes(byte[] b, int offset, int length) throws IOException
      Specified by:
      writeBytes in class org.apache.lucene.store.DataOutput
      Throws:
      IOException
    • writeBytes

      public void writeBytes(byte[] b, int length) throws IOException
      Overrides:
      writeBytes in class org.apache.lucene.store.DataOutput
      Throws:
      IOException
    • writeInt

      public void writeInt(int i) throws IOException
      Overrides:
      writeInt in class org.apache.lucene.store.DataOutput
      Throws:
      IOException
    • writeShort

      public void writeShort(short i) throws IOException
      Overrides:
      writeShort in class org.apache.lucene.store.DataOutput
      Throws:
      IOException
    • writeLong

      public void writeLong(long i) throws IOException
      Overrides:
      writeLong in class org.apache.lucene.store.DataOutput
      Throws:
      IOException
    • writeString

      public void writeString(String s) throws IOException
      Overrides:
      writeString in class org.apache.lucene.store.DataOutput
      Throws:
      IOException
    • copyBytes

      public void copyBytes(org.apache.lucene.store.DataInput input, long numBytes) throws IOException
      Overrides:
      copyBytes in class org.apache.lucene.store.DataOutput
      Throws:
      IOException
    • writeMapOfStrings

      public void writeMapOfStrings(Map<String,String> map) throws IOException
      Overrides:
      writeMapOfStrings in class org.apache.lucene.store.DataOutput
      Throws:
      IOException
    • writeSetOfStrings

      public void writeSetOfStrings(Set<String> set) throws IOException
      Overrides:
      writeSetOfStrings in class org.apache.lucene.store.DataOutput
      Throws:
      IOException