java.io.Closeable, java.lang.AutoCloseable, org.apache.avro.file.SeekableInput@Public
@Stable
public class AvroFSInput
extends java.lang.Object
implements java.io.Closeable, org.apache.avro.file.SeekableInput
FSDataInputStream to Avro's SeekableInput interface.| Constructor | Description |
|---|---|
AvroFSInput(FileContext fc,
Path p) |
Construct given a
FileContext and a Path. |
AvroFSInput(FSDataInputStream in,
long len) |
Construct given an
FSDataInputStream and its length. |
| Modifier and Type | Method | 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 java.io.IOException
FileContext and a Path.fc - filecontext.p - the path.java.io.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 java.io.IOException
read in interface org.apache.avro.file.SeekableInputjava.io.IOExceptionpublic void seek(long p)
throws java.io.IOException
seek in interface org.apache.avro.file.SeekableInputjava.io.IOExceptionpublic long tell()
throws java.io.IOException
tell in interface org.apache.avro.file.SeekableInputjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.