Package cz.o2.proxima.direct.io.blob
Class BlobPath<BlobT extends BlobBase>
- java.lang.Object
-
- cz.o2.proxima.direct.io.blob.BlobPath<BlobT>
-
- Direct Known Subclasses:
GCloudBlobPath
,S3BlobPath
@Internal public abstract class BlobPath<BlobT extends BlobBase> extends java.lang.Object implements Path
APath
representation of a remote blob.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BlobPath(FileSystem fs, BlobT blob)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(Path other)
abstract void
delete()
Delete thisPath
.boolean
equals(java.lang.Object obj)
BlobT
getBlob()
java.lang.String
getBlobName()
FileSystem
getFileSystem()
RetrieveFileSystem
of this Path.int
hashCode()
static java.lang.String
normalizePath(java.lang.String path)
abstract java.io.InputStream
reader()
Open input stream from given Path.java.lang.String
toString()
abstract java.io.OutputStream
writer()
Open output stream to the Path.
-
-
-
Constructor Detail
-
BlobPath
protected BlobPath(FileSystem fs, BlobT blob)
-
-
Method Detail
-
reader
public abstract java.io.InputStream reader()
Description copied from interface:Path
Open input stream from given Path.
-
writer
public abstract java.io.OutputStream writer()
Description copied from interface:Path
Open output stream to the Path.
-
getFileSystem
public FileSystem getFileSystem()
Description copied from interface:Path
RetrieveFileSystem
of this Path.- Specified by:
getFileSystem
in interfacePath
- Returns:
FileSystem
associated with thePath
.
-
getBlob
public BlobT getBlob()
-
getBlobName
public java.lang.String getBlobName()
-
compareTo
public int compareTo(@Nonnull Path other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
normalizePath
public static java.lang.String normalizePath(java.lang.String path)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-