public class ChunkedByteBufferInputStream
extends java.io.InputStream
param: dispose if true, ChunkedByteBuffer.dispose()
will be called at the end of the stream
in order to close any memory-mapped files which back the buffer.
Constructor and Description |
---|
ChunkedByteBufferInputStream(org.apache.spark.util.io.ChunkedByteBuffer chunkedByteBuffer,
boolean dispose) |
Modifier and Type | Method and Description |
---|---|
org.apache.spark.util.io.ChunkedByteBuffer |
chunkedByteBuffer() |
void |
close() |
int |
read() |
int |
read(byte[] dest,
int offset,
int length) |
long |
skip(long bytes) |
public ChunkedByteBufferInputStream(org.apache.spark.util.io.ChunkedByteBuffer chunkedByteBuffer, boolean dispose)
public org.apache.spark.util.io.ChunkedByteBuffer chunkedByteBuffer()
public int read()
read
in class java.io.InputStream
public int read(byte[] dest, int offset, int length)
read
in class java.io.InputStream
public long skip(long bytes)
skip
in class java.io.InputStream
public void close()
close
in interface java.io.Closeable
close
in interface AutoCloseable
close
in class java.io.InputStream