public final class HadoopDataInputStream
extends org.apache.flink.core.fs.FSDataInputStream
FSDataInputStream for the
Hadoop Distributed File System.| Constructor and Description |
|---|
HadoopDataInputStream(org.apache.hadoop.fs.FSDataInputStream fsDataInputStream)
Creates a new data input stream from the given HDFS input stream
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
org.apache.hadoop.fs.FSDataInputStream |
getHadoopInputStream()
Gets the wrapped Hadoop input stream.
|
long |
getPos() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
void |
seek(long desired) |
long |
skip(long n) |
mark, markSupported, read, resetpublic HadoopDataInputStream(org.apache.hadoop.fs.FSDataInputStream fsDataInputStream)
fsDataInputStream - the HDFS input streampublic void seek(long desired)
throws IOException
seek in class org.apache.flink.core.fs.FSDataInputStreamIOExceptionpublic long getPos()
throws IOException
getPos in class org.apache.flink.core.fs.FSDataInputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic org.apache.hadoop.fs.FSDataInputStream getHadoopInputStream()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.