public class FSDataWrappedInputStream extends InputStream implements org.apache.hadoop.fs.Seekable, org.apache.hadoop.fs.PositionedReadable
InputStream
to wrap SeekableInputStream
for Paimon's input streams.Constructor and Description |
---|
FSDataWrappedInputStream(SeekableInputStream seekableInputStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getPos() |
int |
read() |
int |
read(long position,
byte[] buffer,
int offset,
int length) |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int offset,
int length) |
void |
seek(long pos) |
boolean |
seekToNewSource(long targetPos) |
SeekableInputStream |
wrapped() |
available, mark, markSupported, read, read, reset, skip
public FSDataWrappedInputStream(SeekableInputStream seekableInputStream)
public SeekableInputStream wrapped()
public int read() throws IOException
read
in class InputStream
IOException
public int read(long position, byte[] buffer, int offset, int length) throws IOException
read
in interface org.apache.hadoop.fs.PositionedReadable
IOException
public void readFully(long position, byte[] buffer, int offset, int length) throws IOException
readFully
in interface org.apache.hadoop.fs.PositionedReadable
IOException
public void readFully(long position, byte[] buffer) throws IOException
readFully
in interface org.apache.hadoop.fs.PositionedReadable
IOException
public void seek(long pos) throws IOException
seek
in interface org.apache.hadoop.fs.Seekable
IOException
public long getPos() throws IOException
getPos
in interface org.apache.hadoop.fs.Seekable
IOException
public boolean seekToNewSource(long targetPos)
seekToNewSource
in interface org.apache.hadoop.fs.Seekable
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.