Packages

c

org.apache.spark.network.buffer

NettyManagedBuffer

class NettyManagedBuffer extends ManagedBuffer

A ManagedBuffer backed by a Netty ByteBuf.

Linear Supertypes
ManagedBuffer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NettyManagedBuffer
  2. ManagedBuffer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new NettyManagedBuffer(buf: ByteBuf)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def convertToNetty(): AnyRef

    Convert the buffer into a Netty object, used to write the data out.

    Convert the buffer into a Netty object, used to write the data out. The return value is either a io.netty.buffer.ByteBuf or a io.netty.channel.FileRegion.

    If this method returns a ByteBuf, then that buffer's reference count will be incremented and the caller will be responsible for releasing this new reference.

    Definition Classes
    NettyManagedBufferManagedBuffer
    Annotations
    @Override()
  7. def createInputStream(): InputStream

    Exposes this buffer's data as an InputStream.

    Exposes this buffer's data as an InputStream. The underlying implementation does not necessarily check for the length of bytes read, so the caller is responsible for making sure it does not go over the limit.

    Definition Classes
    NettyManagedBufferManagedBuffer
    Annotations
    @Override()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def nioByteBuffer(): ByteBuffer

    Exposes this buffer's data as an NIO ByteBuffer.

    Exposes this buffer's data as an NIO ByteBuffer. Changing the position and limit of the returned ByteBuffer should not affect the content of this buffer.

    Definition Classes
    NettyManagedBufferManagedBuffer
    Annotations
    @Override()
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def release(): ManagedBuffer

    If applicable, decrement the reference count by one and deallocates the buffer if the reference count reaches zero.

    If applicable, decrement the reference count by one and deallocates the buffer if the reference count reaches zero.

    Definition Classes
    NettyManagedBufferManagedBuffer
    Annotations
    @Override()
  19. def retain(): ManagedBuffer

    Increment the reference count by one if applicable.

    Increment the reference count by one if applicable.

    Definition Classes
    NettyManagedBufferManagedBuffer
    Annotations
    @Override()
  20. def size(): Long

    Number of bytes of the data.

    Number of bytes of the data. If this buffer will decrypt for all of the views into the data, this is the size of the decrypted data.

    Definition Classes
    NettyManagedBufferManagedBuffer
    Annotations
    @Override()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    NettyManagedBuffer → AnyRef → Any
    Annotations
    @Override()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from ManagedBuffer

Inherited from AnyRef

Inherited from Any

Ungrouped