public class AvroStorageInputStream extends Object implements Closeable, org.apache.avro.file.SeekableInput
FSDataInputStream
to SeekableInput
.Constructor and Description |
---|
AvroStorageInputStream(org.apache.hadoop.fs.Path path,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
Construct given a path and a configuration.
|
public AvroStorageInputStream(org.apache.hadoop.fs.Path path, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
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 © 2007-2012 The Apache Software Foundation