@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
FileContext and a Path . |
AvroFSInput(FSDataInputStream in,
long len)
Construct given an
FSDataInputStream and its length. |
public AvroFSInput(FSDataInputStream in, long len)
FSDataInputStream
and its length.public AvroFSInput(FileContext fc, Path p) throws IOException
FileContext
and a Path
.IOException
public long length()
length
in interface org.apache.avro.file.SeekableInput
public int read(byte[] b, int off, int len) throws IOException
read
in interface org.apache.avro.file.SeekableInput
IOException
public void seek(long p) throws IOException
seek
in interface org.apache.avro.file.SeekableInput
IOException
public long tell() throws IOException
tell
in interface org.apache.avro.file.SeekableInput
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.