T
- the concrete output stream subclass@NotThreadSafe public final class CreateFileEntry<T extends OutputStream> extends Object implements Closeable
Constructor and Description |
---|
CreateFileEntry(long id,
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.
|
String |
getPath() |
void |
setPath(String path)
Sets the path of the file.
|
public CreateFileEntry(long id, 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 String getPath()
public T getOut()
null
if the file is not open for writing.public void setPath(String path)
path
- the new path of the filepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023. All Rights Reserved.