public class AvroStorageInputStream
extends java.lang.Object
implements java.io.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 java.io.IOException
java.io.IOExceptionpublic 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.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2007-2012 The Apache Software Foundation