Class MappedBuffer
java.lang.Object
org.apache.cassandra.index.sasi.utils.MappedBuffer
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsModifierConstructorDescriptionMappedBuffer(ChannelProxy file) protectedMappedBuffer(ChannelProxy file, int numPageBits) -
Method Summary
Modifier and TypeMethodDescriptionlongcapacity()voidclose()intcomparePageTo(long offset, int length, AbstractType<?> comparator, ByteBuffer other) byteget()byteget(long pos) intgetInt()intgetInt(long pos) longgetLong()longgetLong(long pos) getPageRegion(long position, int length) shortgetShort()shortgetShort(long pos) booleanlonglimit()limit(long newLimit) longposition()position(long newPosition) long
-
Constructor Details
-
MappedBuffer
-
MappedBuffer
-
MappedBuffer
-
-
Method Details
-
comparePageTo
-
capacity
public long capacity() -
position
public long position() -
position
-
limit
public long limit() -
limit
-
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
-
duplicate
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-