|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.mapred.FsInput
public class FsInput
Adapt an FSDataInputStream
to SeekableInput
.
Constructor Summary | |
---|---|
FsInput(Path path,
Configuration conf)
Construct given a path and a configuration. |
Method Summary | |
---|---|
void |
close()
|
long |
length()
Return the length of the file. |
int |
read(byte[] b,
int off,
int len)
Equivalent to InputStream.read(byte[],int,int) . |
void |
seek(long p)
Set the position for the next read() . |
long |
tell()
Return the position of the next read() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FsInput(Path path, Configuration conf) throws IOException
IOException
Method Detail |
---|
public long length()
SeekableInput
length
in interface SeekableInput
public int read(byte[] b, int off, int len) throws IOException
SeekableInput
InputStream.read(byte[],int,int)
.
read
in interface SeekableInput
IOException
public void seek(long p) throws IOException
SeekableInput
read()
.
seek
in interface SeekableInput
IOException
public long tell() throws IOException
SeekableInput
read()
.
tell
in interface SeekableInput
IOException
public void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |