Package org.apache.storm.hdfs.blobstore
Class HdfsBlobStoreFile
- java.lang.Object
-
- org.apache.storm.blobstore.BlobStoreFile
-
- org.apache.storm.hdfs.blobstore.HdfsBlobStoreFile
-
public class HdfsBlobStoreFile extends BlobStoreFile
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.hadoop.fs.permission.FsPermission
BLOBSTORE_FILE_PERMISSION
-
Fields inherited from class org.apache.storm.blobstore.BlobStoreFile
BLOBSTORE_DATA_FILE, TMP_EXT, TMP_NAME_PATTERN
-
-
Constructor Summary
Constructors Constructor Description HdfsBlobStoreFile(org.apache.hadoop.fs.Path base, boolean isTmp, boolean mustBeNew, org.apache.hadoop.conf.Configuration hconf)
HdfsBlobStoreFile(org.apache.hadoop.fs.Path base, String name, org.apache.hadoop.conf.Configuration hconf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
void
commit()
void
delete()
long
getFileLength()
InputStream
getInputStream()
String
getKey()
SettableBlobMeta
getMetadata()
long
getModTime()
OutputStream
getOutputStream()
boolean
isTmp()
void
setMetadata(SettableBlobMeta meta)
String
toString()
-
Methods inherited from class org.apache.storm.blobstore.BlobStoreFile
getVersion
-
-
-
-
Constructor Detail
-
HdfsBlobStoreFile
public HdfsBlobStoreFile(org.apache.hadoop.fs.Path base, String name, org.apache.hadoop.conf.Configuration hconf)
-
HdfsBlobStoreFile
public HdfsBlobStoreFile(org.apache.hadoop.fs.Path base, boolean isTmp, boolean mustBeNew, org.apache.hadoop.conf.Configuration hconf)
-
-
Method Detail
-
delete
public void delete() throws IOException
- Specified by:
delete
in classBlobStoreFile
- Throws:
IOException
-
isTmp
public boolean isTmp()
- Specified by:
isTmp
in classBlobStoreFile
-
getKey
public String getKey()
- Specified by:
getKey
in classBlobStoreFile
-
getModTime
public long getModTime() throws IOException
- Specified by:
getModTime
in classBlobStoreFile
- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in classBlobStoreFile
- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in classBlobStoreFile
- Throws:
IOException
-
commit
public void commit() throws IOException
- Specified by:
commit
in classBlobStoreFile
- Throws:
IOException
-
cancel
public void cancel() throws IOException
- Specified by:
cancel
in classBlobStoreFile
- Throws:
IOException
-
getFileLength
public long getFileLength() throws IOException
- Specified by:
getFileLength
in classBlobStoreFile
- Throws:
IOException
-
getMetadata
public SettableBlobMeta getMetadata()
- Specified by:
getMetadata
in classBlobStoreFile
-
setMetadata
public void setMetadata(SettableBlobMeta meta)
- Specified by:
setMetadata
in classBlobStoreFile
-
-