T
- the concrete fuse file stream subclass@ThreadSafe public final class FuseFileEntry<T extends FuseFileStream> extends Object implements Closeable
Constructor and Description |
---|
FuseFileEntry(long id,
String path,
T fileStream,
int openOrCreateFlags)
Constructs a new
FuseFileEntry for an Alluxio file. |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the underlying open streams.
|
T |
getFileStream()
Gets the fuse file stream for this entry.
|
long |
getId() |
int |
getOpenOrCreateFlags() |
String |
getPath() |
void |
setFileStream(T fileStream) |
void |
setOpenOrCreateFlags(int openOrCreateFlags) |
public FuseFileEntry(long id, String path, T fileStream, int openOrCreateFlags)
FuseFileEntry
for an Alluxio file.id
- the id of the filepath
- the path of the filefileStream
- the in/out stream of the fileopenOrCreateFlags
- open or create flagspublic int getOpenOrCreateFlags()
public void setOpenOrCreateFlags(int openOrCreateFlags)
openOrCreateFlags
- the open or create flagspublic long getId()
public String getPath()
public T getFileStream()
public void setFileStream(T fileStream)
fileStream
- sets the file streampublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023. All Rights Reserved.