Package org.apache.iceberg.hadoop
Class HadoopOutputFile
- java.lang.Object
- 
- org.apache.iceberg.hadoop.HadoopOutputFile
 
- 
- All Implemented Interfaces:
- NativelyEncryptedFile,- OutputFile
 
 public class HadoopOutputFile extends java.lang.Object implements OutputFile, NativelyEncryptedFile OutputFileimplementation using the HadoopFileSystemAPI.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PositionOutputStreamcreate()Create a new file and return aPositionOutputStreamto it.PositionOutputStreamcreateOrOverwrite()Create a new file and return aPositionOutputStreamto it.static OutputFilefromLocation(java.lang.CharSequence location, org.apache.hadoop.conf.Configuration conf)static OutputFilefromLocation(java.lang.CharSequence location, org.apache.hadoop.fs.FileSystem fs)static OutputFilefromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf)static OutputFilefromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs)static OutputFilefromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf)org.apache.hadoop.conf.ConfigurationgetConf()org.apache.hadoop.fs.FileSystemgetFileSystem()org.apache.hadoop.fs.PathgetPath()java.lang.Stringlocation()Return the location this output file will create.NativeFileCryptoParametersnativeCryptoParameters()voidsetNativeCryptoParameters(NativeFileCryptoParameters nativeCryptoParameters)InputFiletoInputFile()Return anInputFilefor the location of this output file.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
fromLocationpublic static OutputFile fromLocation(java.lang.CharSequence location, org.apache.hadoop.conf.Configuration conf) 
 - 
fromLocationpublic static OutputFile fromLocation(java.lang.CharSequence location, org.apache.hadoop.fs.FileSystem fs) 
 - 
fromPathpublic static OutputFile fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) 
 - 
fromPathpublic static OutputFile fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs) 
 - 
fromPathpublic static OutputFile fromPath(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf) 
 - 
createpublic PositionOutputStream create() Description copied from interface:OutputFileCreate a new file and return aPositionOutputStreamto it.If the file already exists, this will throw an exception. - Specified by:
- createin interface- OutputFile
- Returns:
- an output stream that can report its position
 
 - 
createOrOverwritepublic PositionOutputStream createOrOverwrite() Description copied from interface:OutputFileCreate a new file and return aPositionOutputStreamto it.If the file already exists, this will not throw an exception and will replace the file. - Specified by:
- createOrOverwritein interface- OutputFile
- Returns:
- an output stream that can report its position
 
 - 
getPathpublic org.apache.hadoop.fs.Path getPath() 
 - 
getConfpublic org.apache.hadoop.conf.Configuration getConf() 
 - 
getFileSystempublic org.apache.hadoop.fs.FileSystem getFileSystem() 
 - 
locationpublic java.lang.String location() Description copied from interface:OutputFileReturn the location this output file will create.- Specified by:
- locationin interface- OutputFile
- Returns:
- the location of this output file
 
 - 
toInputFilepublic InputFile toInputFile() Description copied from interface:OutputFileReturn anInputFilefor the location of this output file.- Specified by:
- toInputFilein interface- OutputFile
- Returns:
- an input file for the location of this output file
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
nativeCryptoParameterspublic NativeFileCryptoParameters nativeCryptoParameters() - Specified by:
- nativeCryptoParametersin interface- NativelyEncryptedFile
 
 - 
setNativeCryptoParameterspublic void setNativeCryptoParameters(NativeFileCryptoParameters nativeCryptoParameters) - Specified by:
- setNativeCryptoParametersin interface- NativelyEncryptedFile
 
 
- 
 
-