public class FsInput extends Object implements Closeable, org.apache.avro.file.SeekableInput
FSDataInputStream to SeekableInput.| Constructor and Description |
|---|
FsInput(Path path,
Configuration conf)
Construct given a path and a configuration.
|
FsInput(Path path,
FileSystem fileSystem)
Construct given a path and a
FileSystem. |
| 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 FsInput(Path path, Configuration conf) throws IOException
IOExceptionpublic FsInput(Path path, FileSystem fileSystem) throws IOException
FileSystem.IOExceptionpublic 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 © 2009–2025 The Apache Software Foundation. All rights reserved.