Package org.apache.drill.exec.record
Class DeadBuf
java.lang.Object
io.netty.buffer.ByteBuf
org.apache.drill.exec.record.DeadBuf
- All Implemented Interfaces:
ByteBufConvertible,io.netty.util.ReferenceCounted,Comparable<ByteBuf>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionalloc()byte[]array()intintbytesBefore(byte value) intbytesBefore(int length, byte value) intbytesBefore(int index, int length, byte value) intcapacity()capacity(int newCapacity) clear()intcopy()copy(int index, int length) ensureWritable(int minWritableBytes) intensureWritable(int minWritableBytes, boolean force) booleanintforEachByte(int arg0, int arg1, io.netty.util.ByteProcessor arg2) intforEachByte(io.netty.util.ByteProcessor arg0) intforEachByteDesc(int arg0, int arg1, io.netty.util.ByteProcessor arg2) intforEachByteDesc(io.netty.util.ByteProcessor arg0) booleangetBoolean(int index) bytegetByte(int index) getBytes(int index, byte[] dst) getBytes(int index, byte[] dst, int dstIndex, int length) getBytes(int index, OutputStream out, int length) getBytes(int index, ByteBuffer dst) intgetBytes(int index, FileChannel out, long position, int length) intgetBytes(int index, GatheringByteChannel out, int length) chargetChar(int index) getCharSequence(int index, int length, Charset charset) doublegetDouble(int index) floatgetFloat(int index) intgetInt(int index) intgetIntLE(int index) longgetLong(int index) longgetLongLE(int index) intgetMedium(int index) intgetMediumLE(int index) shortgetShort(int index) shortgetShortLE(int index) shortgetUnsignedByte(int index) longgetUnsignedInt(int index) longgetUnsignedIntLE(int index) intgetUnsignedMedium(int index) intgetUnsignedMediumLE(int index) intgetUnsignedShort(int index) intgetUnsignedShortLE(int index) booleanhasArray()inthashCode()booleanintindexOf(int fromIndex, int toIndex, byte value) internalNioBuffer(int arg0, int arg1) booleanisDirect()booleanbooleanisReadable(int size) booleanbooleanbooleanisWritable(int size) intintlongnioBuffer(int index, int length) intnioBuffers(int index, int length) order()intbooleanbytereadByte()readBytes(byte[] dst) readBytes(byte[] dst, int dstIndex, int length) readBytes(int length) readBytes(OutputStream out, int length) readBytes(ByteBuffer dst) intreadBytes(FileChannel out, long position, int length) intreadBytes(GatheringByteChannel out, int length) charreadChar()readCharSequence(int length, Charset charset) doubleintreaderIndex(int readerIndex) floatintreadInt()intlongreadLong()longintintreadRetainedSlice(int length) shortshortreadSlice(int length) shortlonglongintintintintintrefCnt()booleanrelease()booleanrelease(int decrement) retain()retain(int increment) retainedSlice(int index, int length) setBoolean(int index, boolean value) setByte(int index, int value) setBytes(int index, byte[] src) setBytes(int index, byte[] src, int srcIndex, int length) intsetBytes(int index, InputStream in, int length) setBytes(int index, ByteBuffer src) intsetBytes(int index, FileChannel in, long position, int length) intsetBytes(int index, ScatteringByteChannel in, int length) setChar(int index, int value) intsetCharSequence(int index, CharSequence sequence, Charset charset) setDouble(int index, double value) setFloat(int index, float value) setIndex(int readerIndex, int writerIndex) setInt(int index, int value) setIntLE(int index, int value) setLong(int index, long value) setLongLE(int index, long value) setMedium(int index, int value) setMediumLE(int index, int value) setShort(int index, int value) setShortLE(int index, int value) setZero(int index, int length) skipBytes(int length) slice()slice(int index, int length) toString()touch()unwrap()intwriteBoolean(boolean value) writeByte(int value) writeBytes(byte[] src) writeBytes(byte[] src, int srcIndex, int length) writeBytes(ByteBuf src) writeBytes(ByteBuf src, int length) writeBytes(ByteBuf src, int srcIndex, int length) intwriteBytes(InputStream in, int length) writeBytes(ByteBuffer src) intwriteBytes(FileChannel in, long position, int length) intwriteBytes(ScatteringByteChannel in, int length) writeChar(int value) intwriteCharSequence(CharSequence sequence, Charset charset) writeDouble(double value) writeFloat(float value) writeInt(int value) writeIntLE(int value) writeLong(long value) writeLongLE(long value) writeMedium(int value) writeMediumLE(int value) intwriterIndex(int writerIndex) writeShort(int value) writeShortLE(int value) writeZero(int length) Methods inherited from class io.netty.buffer.ByteBuf
asByteBuf, getDoubleLE, getFloatLE, isContiguous, maxFastWritableBytes, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
-
Field Details
-
DEAD_BUFFER
-
-
Method Details
-
isReadable
public boolean isReadable(int size) - Specified by:
isReadablein classByteBuf
-
isWritable
public boolean isWritable(int size) - Specified by:
isWritablein classByteBuf
-
refCnt
public int refCnt() -
release
public boolean release() -
release
public boolean release(int decrement) -
capacity
public int capacity() -
capacity
-
maxCapacity
public int maxCapacity()- Specified by:
maxCapacityin classByteBuf
-
alloc
-
order
-
order
-
unwrap
-
isDirect
public boolean isDirect() -
readerIndex
public int readerIndex()- Specified by:
readerIndexin classByteBuf
-
readerIndex
- Specified by:
readerIndexin classByteBuf
-
writerIndex
public int writerIndex()- Specified by:
writerIndexin classByteBuf
-
writerIndex
- Specified by:
writerIndexin classByteBuf
-
setIndex
-
readableBytes
public int readableBytes()- Specified by:
readableBytesin classByteBuf
-
writableBytes
public int writableBytes()- Specified by:
writableBytesin classByteBuf
-
maxWritableBytes
public int maxWritableBytes()- Specified by:
maxWritableBytesin classByteBuf
-
isReadable
public boolean isReadable()- Specified by:
isReadablein classByteBuf
-
isWritable
public boolean isWritable()- Specified by:
isWritablein classByteBuf
-
clear
-
markReaderIndex
- Specified by:
markReaderIndexin classByteBuf
-
resetReaderIndex
- Specified by:
resetReaderIndexin classByteBuf
-
markWriterIndex
- Specified by:
markWriterIndexin classByteBuf
-
resetWriterIndex
- Specified by:
resetWriterIndexin classByteBuf
-
discardReadBytes
- Specified by:
discardReadBytesin classByteBuf
-
discardSomeReadBytes
- Specified by:
discardSomeReadBytesin classByteBuf
-
ensureWritable
- Specified by:
ensureWritablein classByteBuf
-
ensureWritable
public int ensureWritable(int minWritableBytes, boolean force) - Specified by:
ensureWritablein classByteBuf
-
getBoolean
public boolean getBoolean(int index) - Specified by:
getBooleanin classByteBuf
-
getByte
public byte getByte(int index) -
getUnsignedByte
public short getUnsignedByte(int index) - Specified by:
getUnsignedBytein classByteBuf
-
getShort
public short getShort(int index) -
getShortLE
public short getShortLE(int index) - Specified by:
getShortLEin classByteBuf
-
getUnsignedShort
public int getUnsignedShort(int index) - Specified by:
getUnsignedShortin classByteBuf
-
getUnsignedShortLE
public int getUnsignedShortLE(int index) - Specified by:
getUnsignedShortLEin classByteBuf
-
getMedium
public int getMedium(int index) -
getMediumLE
public int getMediumLE(int index) - Specified by:
getMediumLEin classByteBuf
-
getUnsignedMedium
public int getUnsignedMedium(int index) - Specified by:
getUnsignedMediumin classByteBuf
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int index) - Specified by:
getUnsignedMediumLEin classByteBuf
-
getInt
public int getInt(int index) -
getIntLE
public int getIntLE(int index) -
getUnsignedInt
public long getUnsignedInt(int index) - Specified by:
getUnsignedIntin classByteBuf
-
getUnsignedIntLE
public long getUnsignedIntLE(int index) - Specified by:
getUnsignedIntLEin classByteBuf
-
getLong
public long getLong(int index) -
getLongLE
public long getLongLE(int index) -
getCharSequence
- Specified by:
getCharSequencein classByteBuf
-
getChar
public char getChar(int index) -
getFloat
public float getFloat(int index) -
getDouble
public double getDouble(int index) -
getBytes
-
getBytes
-
getBytes
-
getBytes
-
getBytes
-
getBytes
-
getBytes
-
getBytes
- Specified by:
getBytesin classByteBuf- Throws:
IOException
-
getBytes
- Specified by:
getBytesin classByteBuf- Throws:
IOException
-
setBoolean
- Specified by:
setBooleanin classByteBuf
-
setByte
-
setShort
-
setShortLE
- Specified by:
setShortLEin classByteBuf
-
setMedium
-
setMediumLE
- Specified by:
setMediumLEin classByteBuf
-
setInt
-
setIntLE
-
setLong
-
setLongLE
-
setCharSequence
- Specified by:
setCharSequencein classByteBuf
-
setChar
-
setFloat
-
setDouble
-
setBytes
-
setBytes
-
setBytes
-
setBytes
-
setBytes
-
setBytes
-
setBytes
-
setBytes
- Specified by:
setBytesin classByteBuf- Throws:
IOException
-
setBytes
- Specified by:
setBytesin classByteBuf- Throws:
IOException
-
setZero
-
readBoolean
public boolean readBoolean()- Specified by:
readBooleanin classByteBuf
-
readByte
public byte readByte() -
readUnsignedByte
public short readUnsignedByte()- Specified by:
readUnsignedBytein classByteBuf
-
readShort
public short readShort() -
readShortLE
public short readShortLE()- Specified by:
readShortLEin classByteBuf
-
readUnsignedShort
public int readUnsignedShort()- Specified by:
readUnsignedShortin classByteBuf
-
readUnsignedShortLE
public int readUnsignedShortLE()- Specified by:
readUnsignedShortLEin classByteBuf
-
readMedium
public int readMedium()- Specified by:
readMediumin classByteBuf
-
readMediumLE
public int readMediumLE()- Specified by:
readMediumLEin classByteBuf
-
readUnsignedMedium
public int readUnsignedMedium()- Specified by:
readUnsignedMediumin classByteBuf
-
readUnsignedMediumLE
public int readUnsignedMediumLE()- Specified by:
readUnsignedMediumLEin classByteBuf
-
readInt
public int readInt() -
readIntLE
public int readIntLE() -
readUnsignedInt
public long readUnsignedInt()- Specified by:
readUnsignedIntin classByteBuf
-
readUnsignedIntLE
public long readUnsignedIntLE()- Specified by:
readUnsignedIntLEin classByteBuf
-
readLong
public long readLong() -
readLongLE
public long readLongLE()- Specified by:
readLongLEin classByteBuf
-
readChar
public char readChar() -
readCharSequence
- Specified by:
readCharSequencein classByteBuf
-
readFloat
public float readFloat() -
readDouble
public double readDouble()- Specified by:
readDoublein classByteBuf
-
readBytes
- Specified by:
readBytesin classByteBuf- Throws:
IOException
-
readBytes
-
readSlice
-
readBytes
-
readBytes
-
readBytes
-
readBytes
-
readBytes
-
readBytes
-
readBytes
- Specified by:
readBytesin classByteBuf- Throws:
IOException
-
readBytes
- Specified by:
readBytesin classByteBuf- Throws:
IOException
-
skipBytes
-
writeBoolean
- Specified by:
writeBooleanin classByteBuf
-
writeByte
-
writeShort
- Specified by:
writeShortin classByteBuf
-
writeShortLE
- Specified by:
writeShortLEin classByteBuf
-
writeMedium
- Specified by:
writeMediumin classByteBuf
-
writeMediumLE
- Specified by:
writeMediumLEin classByteBuf
-
writeInt
-
writeIntLE
- Specified by:
writeIntLEin classByteBuf
-
writeLong
-
writeLongLE
- Specified by:
writeLongLEin classByteBuf
-
writeChar
-
writeFloat
- Specified by:
writeFloatin classByteBuf
-
writeDouble
- Specified by:
writeDoublein classByteBuf
-
writeBytes
- Specified by:
writeBytesin classByteBuf
-
writeCharSequence
- Specified by:
writeCharSequencein classByteBuf
-
writeBytes
- Specified by:
writeBytesin classByteBuf
-
writeBytes
- Specified by:
writeBytesin classByteBuf
-
writeBytes
- Specified by:
writeBytesin classByteBuf
-
writeBytes
- Specified by:
writeBytesin classByteBuf
-
writeBytes
- Specified by:
writeBytesin classByteBuf
-
writeBytes
- Specified by:
writeBytesin classByteBuf
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin classByteBuf- Throws:
IOException
-
writeZero
-
indexOf
public int indexOf(int fromIndex, int toIndex, byte value) -
bytesBefore
public int bytesBefore(byte value) - Specified by:
bytesBeforein classByteBuf
-
bytesBefore
public int bytesBefore(int length, byte value) - Specified by:
bytesBeforein classByteBuf
-
bytesBefore
public int bytesBefore(int index, int length, byte value) - Specified by:
bytesBeforein classByteBuf
-
copy
-
copy
-
readRetainedSlice
- Specified by:
readRetainedSlicein classByteBuf
-
slice
-
retainedSlice
- Specified by:
retainedSlicein classByteBuf
-
slice
-
retainedSlice
- Specified by:
retainedSlicein classByteBuf
-
retainedDuplicate
- Specified by:
retainedDuplicatein classByteBuf
-
duplicate
-
nioBufferCount
public int nioBufferCount()- Specified by:
nioBufferCountin classByteBuf
-
nioBuffer
-
nioBuffer
-
nioBuffers
- Specified by:
nioBuffersin classByteBuf
-
nioBuffers
- Specified by:
nioBuffersin classByteBuf
-
hasArray
public boolean hasArray() -
array
public byte[] array() -
arrayOffset
public int arrayOffset()- Specified by:
arrayOffsetin classByteBuf
-
hasMemoryAddress
public boolean hasMemoryAddress()- Specified by:
hasMemoryAddressin classByteBuf
-
memoryAddress
public long memoryAddress()- Specified by:
memoryAddressin classByteBuf
-
toString
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<ByteBuf>- Specified by:
compareToin classByteBuf
-
retain
-
retain
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classByteBuf
-
asReadOnly
- Specified by:
asReadOnlyin classByteBuf
-
equals
-
touch
-
touch
-
forEachByte
public int forEachByte(io.netty.util.ByteProcessor arg0) - Specified by:
forEachBytein classByteBuf
-
forEachByte
public int forEachByte(int arg0, int arg1, io.netty.util.ByteProcessor arg2) - Specified by:
forEachBytein classByteBuf
-
forEachByteDesc
public int forEachByteDesc(io.netty.util.ByteProcessor arg0) - Specified by:
forEachByteDescin classByteBuf
-
forEachByteDesc
public int forEachByteDesc(int arg0, int arg1, io.netty.util.ByteProcessor arg2) - Specified by:
forEachByteDescin classByteBuf
-
hashCode
public int hashCode() -
internalNioBuffer
- Specified by:
internalNioBufferin classByteBuf
-
toString
-