Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Checks whether the file exists.
|
static HadoopInputFile |
fromLocation(java.lang.CharSequence location,
org.apache.hadoop.conf.Configuration conf) |
static HadoopInputFile |
fromLocation(java.lang.CharSequence location,
long length,
org.apache.hadoop.conf.Configuration conf) |
static HadoopInputFile |
fromPath(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
static HadoopInputFile |
fromPath(org.apache.hadoop.fs.Path path,
long length,
org.apache.hadoop.conf.Configuration conf) |
static HadoopInputFile |
fromStatus(org.apache.hadoop.fs.FileStatus stat,
org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.conf.Configuration |
getConf() |
long |
getLength() |
org.apache.hadoop.fs.FileStatus |
getStat() |
java.lang.String |
location()
The fully-qualified location of the input file as a String.
|
SeekableInputStream |
newStream()
Opens a new
SeekableInputStream for the underlying data file |
java.lang.String |
toString() |
public static HadoopInputFile fromLocation(java.lang.CharSequence location, org.apache.hadoop.conf.Configuration conf)
public static HadoopInputFile fromLocation(java.lang.CharSequence location, long length, org.apache.hadoop.conf.Configuration conf)
public static HadoopInputFile fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)
public static HadoopInputFile fromPath(org.apache.hadoop.fs.Path path, long length, org.apache.hadoop.conf.Configuration conf)
public static HadoopInputFile fromStatus(org.apache.hadoop.fs.FileStatus stat, org.apache.hadoop.conf.Configuration conf)
public long getLength()
public SeekableInputStream newStream()
InputFile
SeekableInputStream
for the underlying data filepublic org.apache.hadoop.conf.Configuration getConf()
public org.apache.hadoop.fs.FileStatus getStat()
public java.lang.String location()
InputFile
public boolean exists()
InputFile
public java.lang.String toString()
toString
in class java.lang.Object