|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
SeekableInputInputStream.read(byte[],int,int).
read in interface SeekableInputIOException
public void seek(long p)
throws IOException
SeekableInputread().
seek in interface SeekableInputIOException
public long tell()
throws IOException
SeekableInputread().
tell in interface SeekableInputIOException
public void close()
throws IOException
close in interface CloseableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||