public class SeekableFSDataInputStream extends InputStream implements org.apache.avro.file.SeekableInput
| Constructor and Description |
|---|
SeekableFSDataInputStream(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
length() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long p) |
long |
tell() |
available, mark, markSupported, reset, skippublic SeekableFSDataInputStream(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path file)
throws IOException
IOExceptionpublic void seek(long p)
throws IOException
seek in interface org.apache.avro.file.SeekableInputIOExceptionpublic long tell()
throws IOException
tell in interface org.apache.avro.file.SeekableInputIOExceptionpublic long length()
throws IOException
length in interface org.apache.avro.file.SeekableInputIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface org.apache.avro.file.SeekableInputread in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.