Package org.apache.iceberg.hadoop
Class HadoopInputFile
- java.lang.Object
- 
- org.apache.iceberg.hadoop.HadoopInputFile
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.String[]NO_LOCATION_PREFERENCE
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()Checks whether the file exists.static HadoopInputFilefromLocation(java.lang.CharSequence location, long length, org.apache.hadoop.conf.Configuration conf)static HadoopInputFilefromLocation(java.lang.CharSequence location, long length, org.apache.hadoop.fs.FileSystem fs)static HadoopInputFilefromLocation(java.lang.CharSequence location, org.apache.hadoop.conf.Configuration conf)static HadoopInputFilefromLocation(java.lang.CharSequence location, org.apache.hadoop.fs.FileSystem fs)static HadoopInputFilefromPath(org.apache.hadoop.fs.Path path, long length, org.apache.hadoop.conf.Configuration conf)static HadoopInputFilefromPath(org.apache.hadoop.fs.Path path, long length, org.apache.hadoop.fs.FileSystem fs)static HadoopInputFilefromPath(org.apache.hadoop.fs.Path path, long length, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf)static HadoopInputFilefromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)static HadoopInputFilefromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs)static HadoopInputFilefromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf)static HadoopInputFilefromStatus(org.apache.hadoop.fs.FileStatus stat, org.apache.hadoop.conf.Configuration conf)static HadoopInputFilefromStatus(org.apache.hadoop.fs.FileStatus stat, org.apache.hadoop.fs.FileSystem fs)static HadoopInputFilefromStatus(org.apache.hadoop.fs.FileStatus stat, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf)java.lang.String[]getBlockLocations(long start, long end)org.apache.hadoop.conf.ConfigurationgetConf()org.apache.hadoop.fs.FileSystemgetFileSystem()longgetLength()Returns the total length of the file, in bytesorg.apache.hadoop.fs.PathgetPath()org.apache.hadoop.fs.FileStatusgetStat()java.lang.Stringlocation()The fully-qualified location of the input file as a String.SeekableInputStreamnewStream()Opens a newSeekableInputStreamfor the underlying data filejava.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
fromLocationpublic static HadoopInputFile fromLocation(java.lang.CharSequence location, org.apache.hadoop.conf.Configuration conf) 
 - 
fromLocationpublic static HadoopInputFile fromLocation(java.lang.CharSequence location, long length, org.apache.hadoop.conf.Configuration conf) 
 - 
fromLocationpublic static HadoopInputFile fromLocation(java.lang.CharSequence location, org.apache.hadoop.fs.FileSystem fs) 
 - 
fromLocationpublic static HadoopInputFile fromLocation(java.lang.CharSequence location, long length, org.apache.hadoop.fs.FileSystem fs) 
 - 
fromPathpublic static HadoopInputFile fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) 
 - 
fromPathpublic static HadoopInputFile fromPath(org.apache.hadoop.fs.Path path, long length, org.apache.hadoop.conf.Configuration conf) 
 - 
fromPathpublic static HadoopInputFile fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs) 
 - 
fromPathpublic static HadoopInputFile fromPath(org.apache.hadoop.fs.Path path, long length, org.apache.hadoop.fs.FileSystem fs) 
 - 
fromPathpublic static HadoopInputFile fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf) 
 - 
fromPathpublic static HadoopInputFile fromPath(org.apache.hadoop.fs.Path path, long length, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf) 
 - 
fromStatuspublic static HadoopInputFile fromStatus(org.apache.hadoop.fs.FileStatus stat, org.apache.hadoop.conf.Configuration conf) 
 - 
fromStatuspublic static HadoopInputFile fromStatus(org.apache.hadoop.fs.FileStatus stat, org.apache.hadoop.fs.FileSystem fs) 
 - 
fromStatuspublic static HadoopInputFile fromStatus(org.apache.hadoop.fs.FileStatus stat, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf) 
 - 
getLengthpublic long getLength() Description copied from interface:InputFileReturns the total length of the file, in bytes
 - 
newStreampublic SeekableInputStream newStream() Description copied from interface:InputFileOpens a newSeekableInputStreamfor the underlying data file
 - 
getConfpublic org.apache.hadoop.conf.Configuration getConf() 
 - 
getFileSystempublic org.apache.hadoop.fs.FileSystem getFileSystem() 
 - 
getStatpublic org.apache.hadoop.fs.FileStatus getStat() 
 - 
getPathpublic org.apache.hadoop.fs.Path getPath() 
 - 
getBlockLocationspublic java.lang.String[] getBlockLocations(long start, long end)
 - 
locationpublic java.lang.String location() Description copied from interface:InputFileThe fully-qualified location of the input file as a String.
 - 
existspublic boolean exists() Description copied from interface:InputFileChecks whether the file exists.
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-