public class MappedBuffer
extends java.lang.Object
implements java.io.Closeable
Modifier | Constructor and Description |
---|---|
|
MappedBuffer(ChannelProxy file) |
protected |
MappedBuffer(ChannelProxy file,
int numPageBits) |
|
MappedBuffer(RandomAccessReader file) |
Modifier and Type | Method and Description |
---|---|
long |
capacity() |
void |
close() |
int |
comparePageTo(long offset,
int length,
AbstractType<?> comparator,
java.nio.ByteBuffer other) |
MappedBuffer |
duplicate() |
byte |
get() |
byte |
get(long pos) |
int |
getInt() |
int |
getInt(long pos) |
long |
getLong() |
long |
getLong(long pos) |
java.nio.ByteBuffer |
getPageRegion(long position,
int length) |
short |
getShort() |
short |
getShort(long pos) |
boolean |
hasRemaining() |
long |
limit() |
MappedBuffer |
limit(long newLimit) |
long |
position() |
MappedBuffer |
position(long newPosition) |
long |
remaining() |
public MappedBuffer(RandomAccessReader file)
public MappedBuffer(ChannelProxy file)
protected MappedBuffer(ChannelProxy file, int numPageBits)
public int comparePageTo(long offset, int length, AbstractType<?> comparator, java.nio.ByteBuffer other)
public long capacity()
public long position()
public MappedBuffer position(long newPosition)
public long limit()
public MappedBuffer limit(long newLimit)
public long remaining()
public boolean hasRemaining()
public byte get()
public byte get(long pos)
public short getShort()
public short getShort(long pos)
public int getInt()
public int getInt(long pos)
public long getLong()
public long getLong(long pos)
public java.nio.ByteBuffer getPageRegion(long position, int length)
public MappedBuffer duplicate()
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © 2009-2021 The Apache Software Foundation