public class OpenFileHandle extends Object
Constructor and Description |
---|
OpenFileHandle(String path,
FileInfo info,
CreateFilePOptions options,
OutputStream ufsOutStream)
Construct a new open file handle.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this handle.
|
FileInfo |
getInfo()
Get info of this handle.
|
long |
getLastAccessTimeMs()
Get last accessed time.
|
CreateFilePOptions |
getOptions()
Get Alluxio create file options.
|
OutputStream |
getOutStream()
Get UFS out stream of this handle.
|
String |
getPath()
Get path of this handle.
|
long |
getPos()
Get write position of the out stream in this handle.
|
UUID |
getUUID()
Get UUID.
|
boolean |
isClosed()
Check if this handle is already closed.
|
public OpenFileHandle(String path, FileInfo info, CreateFilePOptions options, @Nullable OutputStream ufsOutStream)
path
- the path of the fileinfo
- the FileInfo of this fileoptions
- the options of createufsOutStream
- the UFS output stream of this filepublic UUID getUUID()
public long getLastAccessTimeMs()
public String getPath()
public FileInfo getInfo()
public long getPos()
public OutputStream getOutStream()
public CreateFilePOptions getOptions()
public boolean isClosed()
public void close()
Copyright © 2023. All Rights Reserved.