public class VanillaMappedBytes extends NativeBytes
capacityAddr, limitAddr, NO_PAGE, positionAddr, startAddr, UNSAFEEND_OF_BUFFER, finished, SLEEP_THRESHOLD, UNSIGNED_INT_MASK| Modifier | Constructor and Description |
|---|---|
|
VanillaMappedBytes(MappedByteBuffer buffer) |
|
VanillaMappedBytes(MappedByteBuffer buffer,
long index) |
protected |
VanillaMappedBytes(MappedByteBuffer buffer,
long index,
FileChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup() |
void |
force() |
long |
index() |
boolean |
release() |
ByteBuffer |
sliceAsByteBuffer(ByteBuffer toReuse)
Returns a
ByteBuffer whose content is a shared subsequence of this bytes' content. |
boolean |
unmapped() |
address, alignPositionAddr, byteOrder, bytes, bytes, capacity, checkEndOfBuffer, compare, compareAndSwapInt, compareAndSwapLong, lazyPosition, limit, limit, load, longHash, position, position, positionAddr, positionAddr, read, readByte, readByte, readChar, readChar, readDouble, readDouble, readFloat, readFloat, readFully, readFully, readFully, readInt, readInt, readLong, readLong, readObject, readShort, readShort, readVolatileInt, readVolatileInt, readVolatileLong, readVolatileLong, remaining, slice, slice, sliceAsByteBuffer, startAddr, subSequence, write, write, write, write, write, writeByte, writeChar, writeChar, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeLong, writeLong, writeObject, writeOrderedInt, writeOrderedInt, writeOrderedLong, writeOrderedLong, writeShort, writeShort, zeroOut, zeroOut, zeroOutaddAndGetInt, addAtomicDouble, addAtomicFloat, addAtomicInt, addAtomicLong, addByte, addDouble, addFloat, addInt, addLong, addShort, addUnsignedByte, addUnsignedInt, addUnsignedShort, append, append, append, append, append, append, append, append, append, append, append, append, appendDateMillis, appendDateTimeMillis, appendTimeMillis, asString, asString, available, busyLockInt, busyLockLong, charAt, clear, clearThreadAssociation, close, compareAndSwapDouble, compareRest, file, findUTFLength, findUTFLength, findUTFLength, finish, flip, flush, free, getAndAdd, inputStream, isFinished, length, objectSerializer, outputStream, parseBoolean, parseDecimal, parseDouble, parseEnum, parseLong, parseLong, parseUTF, parseUTF, read, read, read, read, read8bitText, readBoolean, readBoolean, readByteOrThrow, readCompactDouble, readCompactInt, readCompactLong, readCompactShort, readCompactUnsignedInt, readCompactUnsignedShort, readEnum, readFully, readFully, readInstance, readInt24, readInt24, readInt48, readInt48, readLine, readList, readMap, readMarshallable, readObject, readObject, readStopBit, readUnsignedByte, readUnsignedByte, readUnsignedByteOrThrow, readUnsignedInt, readUnsignedInt, readUnsignedShort, readUnsignedShort, readUTF, readUTF0, readUTFΔ, readUTFΔ, readUTFΔ, readVolatileDouble, readVolatileFloat, refCount, reserve, resetLockInt, resetLockLong, selfTerminating, selfTerminating, setObjectSerializer, size, skip, skipBytes, skipTo, startsWith, stepBackAndSkipTo, threadIdForLockInt, threadIdForLockLong, toDebugString, toDebugString, toHex, toString, toString, toString, tryLockInt, tryLockLong, tryLockNanosInt, tryLockNanosLong, tryRWReadLock, tryRWWriteLock, unlockInt, unlockLong, unlockRWReadLock, unlockRWWriteLock, write, write, write, write, write, write, write, write8bitText, writeBoolean, writeBoolean, writeByte, writeBytes, writeChars, writeChars, writeCompactDouble, writeCompactInt, writeCompactLong, writeCompactShort, writeCompactUnsignedInt, writeCompactUnsignedShort, writeEnum, writeInstance, writeInt24, writeInt24, writeInt48, writeInt48, writeList, writeMap, writeMarshallable, writeObject, writeOrderedDouble, writeOrderedFloat, writeStopBit, writeUnsignedByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedInt, writeUnsignedShort, writeUnsignedShort, writeUTF, writeUTF0, writeUTFΔ, writeUTFΔpublic VanillaMappedBytes(MappedByteBuffer buffer)
public VanillaMappedBytes(MappedByteBuffer buffer, long index)
protected VanillaMappedBytes(MappedByteBuffer buffer, long index, FileChannel channel)
public long index()
public boolean unmapped()
public boolean release()
release in interface ReferenceCountedrelease in class AbstractBytesprotected void cleanup()
cleanup in class NativeBytespublic void force()
public ByteBuffer sliceAsByteBuffer(ByteBuffer toReuse)
BytesCommonByteBuffer whose content is a shared subsequence of this bytes' content.
The content of the returned ByteBuffer will start at this bytes' current
position. Changes to this bytes' content will be visible in the returned ByteBuffer,
and vice versa; this bytes' and the returned ByteBuffer's position and limit values
will be independent.
The returned ByteBuffer's position will be zero, its capacity and its limit
will be the number of bytes remaining in this bytes.
If this bytes object is able to reuse to given toReuse ByteBuffer, it will
be reused and returned back from this method, otherwise a new ByteBuffer instance
is created and returned.
sliceAsByteBuffer in interface BytesCommonsliceAsByteBuffer in class NativeBytestoReuse - a ByteBuffer to reuseByteBuffer view of this BytesBytesCommon.slice(),
ByteBuffer.slice()Copyright © 2015. All rights reserved.