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.IOException
public long length()
length
in interface org.apache.avro.file.SeekableInput
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in interface org.apache.avro.file.SeekableInput
java.io.IOException
public void seek(long p) throws java.io.IOException
seek
in interface org.apache.avro.file.SeekableInput
java.io.IOException
public long tell() throws java.io.IOException
tell
in interface org.apache.avro.file.SeekableInput
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2007-2012 The Apache Software Foundation