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
APathrepresentation of a remote blob.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBlobPath(FileSystem fs, BlobT blob)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(Path other)abstract voiddelete()Delete thisPath.booleanequals(java.lang.Object obj)BlobTgetBlob()java.lang.StringgetBlobName()FileSystemgetFileSystem()RetrieveFileSystemof this Path.inthashCode()static java.lang.StringnormalizePath(java.lang.String path)abstract java.io.InputStreamreader()Open input stream from given Path.java.lang.StringtoString()abstract java.io.OutputStreamwriter()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:PathOpen input stream from given Path.
-
writer
public abstract java.io.OutputStream writer()
Description copied from interface:PathOpen output stream to the Path.
-
getFileSystem
public FileSystem getFileSystem()
Description copied from interface:PathRetrieveFileSystemof this Path.- Specified by:
getFileSystemin interfacePath- Returns:
FileSystemassociated with thePath.
-
getBlob
public BlobT getBlob()
-
getBlobName
public java.lang.String getBlobName()
-
compareTo
public int compareTo(@Nonnull Path other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
normalizePath
public static java.lang.String normalizePath(java.lang.String path)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-