Package cz.o2.proxima.direct.io.bulkfs
Interface Path
-
- All Superinterfaces:
java.lang.Comparable<Path>,java.io.Serializable
- All Known Implementing Classes:
BlobPath,GCloudBlobPath,LocalPath,S3BlobPath
@Internal public interface Path extends java.io.Serializable, java.lang.Comparable<Path>
Proxima's abstraction of path inFileSystem.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voiddelete()Delete thisPath.FileSystemgetFileSystem()RetrieveFileSystemof this Path.static LocalPathlocal(FileSystem fs, java.io.File path)Create a Path representation of the givenlocal file.default java.nio.channels.ReadableByteChannelread()Open readable byte channel from a given Path.java.io.InputStreamreader()Deprecated.Useread()instead.static Pathstdin(FileFormat format)default java.nio.channels.WritableByteChannelwrite()Open writeable byte channel to a given Path.java.io.OutputStreamwriter()Deprecated.Usewrite()instead.
-
-
-
Method Detail
-
local
static LocalPath local(FileSystem fs, java.io.File path)
Create a Path representation of the givenlocal file.- Parameters:
fs- local filesystempath- the local file- Returns:
- Path representation of this local file
-
stdin
static Path stdin(FileFormat format)
-
read
default java.nio.channels.ReadableByteChannel read() throws java.io.IOExceptionOpen readable byte channel from a given Path.- Returns:
ReadableByteChannelof thePath.- Throws:
java.io.IOException- on errors
-
reader
@Deprecated java.io.InputStream reader() throws java.io.IOExceptionDeprecated.Useread()instead.Open input stream from given Path.- Returns:
InputStreamof thePath.- Throws:
java.io.IOException- on errors
-
write
default java.nio.channels.WritableByteChannel write() throws java.io.IOExceptionOpen writeable byte channel to a given Path.- Returns:
WritableByteChannelof thePath.- Throws:
java.io.IOException- on errors
-
writer
@Deprecated java.io.OutputStream writer() throws java.io.IOExceptionDeprecated.Usewrite()instead.Open output stream to the Path.- Returns:
OutputStreamof thePath- Throws:
java.io.IOException- on errors *
-
getFileSystem
FileSystem getFileSystem()
RetrieveFileSystemof this Path.- Returns:
FileSystemassociated with thePath.
-
delete
void delete() throws java.io.IOExceptionDelete thisPath.- Throws:
java.io.IOException- on errors
-
-