Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 1.19 KB

spark-ManagedBuffer.adoc

File metadata and controls

63 lines (48 loc) · 1.19 KB

ManagedBuffer

ManagedBuffer is the base of…​FIXME

package org.apache.spark.network.buffer;

abstract class ManagedBuffer {
  abstract long size();
  abstract ByteBuffer nioByteBuffer() throws IOException;
  abstract InputStream createInputStream() throws IOException;
  abstract ManagedBuffer retain();
  abstract ManagedBuffer release();
  abstract Object convertToNetty() throws IOException;
}
Table 1. ManagedBuffer Contract
Method Description

size

Used when…​FIXME

nioByteBuffer

Used when…​FIXME

createInputStream

Used when…​FIXME

retain

Used when…​FIXME

release

Used when…​FIXME

convertToNetty

Used when…​FIXME

Table 2. ManagedBuffers
ManagedBuffer Description

BlockManagerManagedBuffer

FileSegmentManagedBuffer

NettyManagedBuffer

NioManagedBuffer