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.FsPermissionBLOBSTORE_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 voidcancel()voidcommit()voiddelete()longgetFileLength()InputStreamgetInputStream()StringgetKey()SettableBlobMetagetMetadata()longgetModTime()OutputStreamgetOutputStream()booleanisTmp()voidsetMetadata(SettableBlobMeta meta)StringtoString()-
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:
deletein classBlobStoreFile- Throws:
IOException
-
isTmp
public boolean isTmp()
- Specified by:
isTmpin classBlobStoreFile
-
getKey
public String getKey()
- Specified by:
getKeyin classBlobStoreFile
-
getModTime
public long getModTime() throws IOException- Specified by:
getModTimein classBlobStoreFile- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin classBlobStoreFile- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin classBlobStoreFile- Throws:
IOException
-
commit
public void commit() throws IOException- Specified by:
commitin classBlobStoreFile- Throws:
IOException
-
cancel
public void cancel() throws IOException- Specified by:
cancelin classBlobStoreFile- Throws:
IOException
-
getFileLength
public long getFileLength() throws IOException- Specified by:
getFileLengthin classBlobStoreFile- Throws:
IOException
-
getMetadata
public SettableBlobMeta getMetadata()
- Specified by:
getMetadatain classBlobStoreFile
-
setMetadata
public void setMetadata(SettableBlobMeta meta)
- Specified by:
setMetadatain classBlobStoreFile
-
-