Class StoreMetricsIndexInput

java.lang.Object
org.apache.lucene.store.DataInput
org.apache.lucene.store.IndexInput
org.apache.lucene.store.FilterIndexInput
org.elasticsearch.index.store.StoreMetricsIndexInput
All Implemented Interfaces:
Closeable, AutoCloseable, Cloneable, DirectAccessInput

public class StoreMetricsIndexInput extends org.apache.lucene.store.FilterIndexInput implements DirectAccessInput
  • Method Details

    • create

      public static org.apache.lucene.store.IndexInput create(String resourceDescription, org.apache.lucene.store.IndexInput in, PluggableDirectoryMetricsHolder<StoreMetrics> metricHolder)
    • readByte

      public byte readByte() throws IOException
      Overrides:
      readByte in class org.apache.lucene.store.FilterIndexInput
      Throws:
      IOException
    • readBytes

      public void readBytes(byte[] b, int offset, int len) throws IOException
      Overrides:
      readBytes in class org.apache.lucene.store.FilterIndexInput
      Throws:
      IOException
    • clone

      public org.apache.lucene.store.IndexInput clone()
      Overrides:
      clone in class org.apache.lucene.store.IndexInput
    • slice

      public org.apache.lucene.store.IndexInput slice(String sliceDescription, long offset, long length) throws IOException
      Overrides:
      slice in class org.apache.lucene.store.FilterIndexInput
      Throws:
      IOException
    • slice

      public org.apache.lucene.store.IndexInput slice(String sliceDescription, long offset, long length, org.apache.lucene.store.IOContext context) throws IOException
      Overrides:
      slice in class org.apache.lucene.store.IndexInput
      Throws:
      IOException
    • randomAccessSlice

      public org.apache.lucene.store.RandomAccessInput randomAccessSlice(long offset, long length) throws IOException
      Overrides:
      randomAccessSlice in class org.apache.lucene.store.IndexInput
      Throws:
      IOException
    • prefetch

      public void prefetch(long offset, long length) throws IOException
      Overrides:
      prefetch in class org.apache.lucene.store.IndexInput
      Throws:
      IOException
    • withByteBufferSlice

      public boolean withByteBufferSlice(long offset, long length, CheckedConsumer<ByteBuffer,IOException> action) throws IOException
      Specified by:
      withByteBufferSlice in interface DirectAccessInput
      Throws:
      IOException
    • withByteBufferSlices

      public boolean withByteBufferSlices(long[] offsets, int length, int count, CheckedConsumer<ByteBuffer[],IOException> action) throws IOException
      Specified by:
      withByteBufferSlices in interface DirectAccessInput
      Throws:
      IOException
    • isLoaded

      public Optional<Boolean> isLoaded()
      Overrides:
      isLoaded in class org.apache.lucene.store.IndexInput
    • updateIOContext

      public void updateIOContext(org.apache.lucene.store.IOContext context) throws IOException
      Overrides:
      updateIOContext in class org.apache.lucene.store.IndexInput
      Throws:
      IOException
    • readBytes

      public void readBytes(byte[] b, int offset, int len, boolean useBuffer) throws IOException
      Overrides:
      readBytes in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readShort

      public short readShort() throws IOException
      Overrides:
      readShort in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readInt

      public int readInt() throws IOException
      Overrides:
      readInt in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readVInt

      public int readVInt() throws IOException
      Overrides:
      readVInt in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readZInt

      public int readZInt() throws IOException
      Overrides:
      readZInt in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readLong

      public long readLong() throws IOException
      Overrides:
      readLong in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readLongs

      public void readLongs(long[] dst, int offset, int length) throws IOException
      Overrides:
      readLongs in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readInts

      public void readInts(int[] dst, int offset, int length) throws IOException
      Overrides:
      readInts in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readFloats

      public void readFloats(float[] floats, int offset, int len) throws IOException
      Overrides:
      readFloats in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readVLong

      public long readVLong() throws IOException
      Overrides:
      readVLong in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readZLong

      public long readZLong() throws IOException
      Overrides:
      readZLong in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readString

      public String readString() throws IOException
      Overrides:
      readString in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readMapOfStrings

      public Map<String,String> readMapOfStrings() throws IOException
      Overrides:
      readMapOfStrings in class org.apache.lucene.store.DataInput
      Throws:
      IOException
    • readSetOfStrings

      public Set<String> readSetOfStrings() throws IOException
      Overrides:
      readSetOfStrings in class org.apache.lucene.store.DataInput
      Throws:
      IOException