Class ByteBuffersIndexInput

All Implemented Interfaces:
Closeable, AutoCloseable, Cloneable, RandomAccessInput

public final class ByteBuffersIndexInput extends IndexInput implements RandomAccessInput
An IndexInput implementing RandomAccessInput and backed by a ByteBuffersDataInput.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a clone of this stream.
    void
    Closes the stream to further operations.
    long
    Returns the current position in this file, where the next read will occur.
    long
    The number of bytes in the file.
    randomAccessSlice(long offset, long length)
    Creates a random-access slice of this index input, with the given offset and length.
    byte
    Reads and returns a single byte.
    byte
    readByte(long pos)
    Reads a byte at the given position in the file
    void
    readBytes(byte[] b, int offset, int len)
    Reads a specified number of bytes into an array at the specified offset.
    void
    readBytes(byte[] b, int offset, int len, boolean useBuffer)
    Reads a specified number of bytes into an array at the specified offset with control over whether the read should be buffered (callers who have their own buffer should pass in "false" for useBuffer).
    void
    readBytes(long pos, byte[] bytes, int offset, int length)
    Reads a specified number of bytes starting at a given position into an array at the specified offset.
    void
    readFloats(float[] floats, int offset, int len)
    Reads a specified number of floats into an array at the specified offset.
    void
    readGroupVInt(long[] dst, int offset)
    Override if you have an efficient implementation.
    int
    Reads four bytes and returns an int (LE byte order).
    int
    readInt(long pos)
    Reads an integer (LE byte order) at the given position in the file
    long
    Reads eight bytes and returns a long (LE byte order).
    long
    readLong(long pos)
    Reads a long (LE byte order) at the given position in the file
    void
    readLongs(long[] dst, int offset, int length)
    Read a specified number of longs.
    Reads a Map<String,String> previously written with DataOutput.writeMapOfStrings(Map).
    Reads a Set<String> previously written with DataOutput.writeSetOfStrings(Set).
    short
    Reads two bytes and returns a short (LE byte order).
    short
    readShort(long pos)
    Reads a short (LE byte order) at the given position in the file
    Reads a string.
    int
    Reads an int stored in variable-length format.
    long
    Reads a long stored in variable-length format.
    int
    Read a zig-zag-encoded variable-length integer.
    long
    Read a zig-zag-encoded variable-length integer.
    void
    seek(long pos)
    Sets current position in this file, where the next read will occur.
    void
    skipBytes(long numBytes)
    Skip over numBytes bytes.
    slice(String sliceDescription, long offset, long length)
    Creates a slice of this index input, with the given description, offset, and length.

    Methods inherited from class org.apache.lucene.store.IndexInput

    getFullSliceDescription, prefetch, slice, toString

    Methods inherited from class org.apache.lucene.store.DataInput

    readInts

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.lucene.store.RandomAccessInput

    prefetch