@InterfaceAudience.Public @InterfaceStability.Stable public class AvroFSInput extends Object implements Closeable, org.apache.avro.file.SeekableInput
FSDataInputStream to Avro's SeekableInput interface.| Constructor and Description | 
|---|
| AvroFSInput(FileContext fc,
           Path p)Construct given a  FileContextand aPath. | 
| AvroFSInput(FSDataInputStream in,
           long len)Construct given an  FSDataInputStreamand its length. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| long | length() | 
| int | read(byte[] b,
    int off,
    int len) | 
| void | seek(long p) | 
| long | tell() | 
public AvroFSInput(FSDataInputStream in, long len)
FSDataInputStream and its length.in - inputstream.len - len.public AvroFSInput(FileContext fc, Path p) throws IOException
FileContext and a Path.fc - filecontext.p - the path.IOException - If an I/O error occurred.public long length()
length in interface org.apache.avro.file.SeekableInputpublic int read(byte[] b,
                int off,
                int len)
         throws IOException
read in interface org.apache.avro.file.SeekableInputIOExceptionpublic 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 void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2023 Apache Software Foundation. All rights reserved.