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, skippublic FSDataWrappedInputStream(SeekableInputStream seekableInputStream)
public SeekableInputStream wrapped()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(long position,
byte[] buffer,
int offset,
int length)
throws IOException
read in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic void readFully(long position,
byte[] buffer,
int offset,
int length)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic void readFully(long position,
byte[] buffer)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic void seek(long pos)
throws IOException
seek in interface org.apache.hadoop.fs.SeekableIOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.fs.SeekableIOExceptionpublic boolean seekToNewSource(long targetPos)
seekToNewSource in interface org.apache.hadoop.fs.Seekablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.