T - the concrete output stream subclass@NotThreadSafe
public final class CreateFileEntry<T extends java.io.OutputStream>
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
CreateFileEntry(long id,
java.lang.String path,
T out)
Constructs a new
CreateFileEntry for an Alluxio file. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying open streams.
|
long |
getId() |
T |
getOut()
Gets the opened output stream for this open file entry.
|
java.lang.String |
getPath() |
void |
setPath(java.lang.String path)
Sets the path of the file.
|
public CreateFileEntry(long id,
java.lang.String path,
T out)
CreateFileEntry for an Alluxio file.id - the id of the filepath - the path of the fileout - the output stream of the filepublic long getId()
public java.lang.String getPath()
public T getOut()
null
if the file is not open for writing.public void setPath(java.lang.String path)
path - the new path of the filepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2021. All Rights Reserved.