Class MappedBuffer

java.lang.Object
org.apache.cassandra.index.sasi.utils.MappedBuffer
All Implemented Interfaces:
Closeable, AutoCloseable

public class MappedBuffer extends Object implements Closeable
  • Constructor Details

  • Method Details

    • comparePageTo

      public int comparePageTo(long offset, int length, AbstractType<?> comparator, ByteBuffer other)
    • capacity

      public long capacity()
    • position

      public long position()
    • position

      public MappedBuffer position(long newPosition)
    • limit

      public long limit()
    • limit

      public MappedBuffer limit(long newLimit)
    • remaining

      public long remaining()
    • hasRemaining

      public boolean hasRemaining()
    • get

      public byte get()
    • get

      public byte get(long pos)
    • getShort

      public short getShort()
    • getShort

      public short getShort(long pos)
    • getInt

      public int getInt()
    • getInt

      public int getInt(long pos)
    • getLong

      public long getLong()
    • getLong

      public long getLong(long pos)
    • getPageRegion

      public ByteBuffer getPageRegion(long position, int length)
    • duplicate

      public MappedBuffer duplicate()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable