public class HdfsBlobStoreFile extends BlobStoreFile
| Modifier and Type | Field and Description |
|---|---|
static org.apache.hadoop.fs.permission.FsPermission |
BLOBSTORE_FILE_PERMISSION |
BLOBSTORE_DATA_FILE, TMP_EXT, TMP_NAME_PATTERN| Constructor and 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) |
| Modifier and Type | Method and 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() |
public static final org.apache.hadoop.fs.permission.FsPermission BLOBSTORE_FILE_PERMISSION
public HdfsBlobStoreFile(org.apache.hadoop.fs.Path base,
String name,
org.apache.hadoop.conf.Configuration hconf)
public HdfsBlobStoreFile(org.apache.hadoop.fs.Path base,
boolean isTmp,
boolean mustBeNew,
org.apache.hadoop.conf.Configuration hconf)
public void delete()
throws IOException
delete in class BlobStoreFileIOExceptionpublic boolean isTmp()
isTmp in class BlobStoreFilepublic String getKey()
getKey in class BlobStoreFilepublic long getModTime()
throws IOException
getModTime in class BlobStoreFileIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class BlobStoreFileIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in class BlobStoreFileIOExceptionpublic void commit()
throws IOException
commit in class BlobStoreFileIOExceptionpublic void cancel()
throws IOException
cancel in class BlobStoreFileIOExceptionpublic long getFileLength()
throws IOException
getFileLength in class BlobStoreFileIOExceptionpublic SettableBlobMeta getMetadata()
getMetadata in class BlobStoreFilepublic void setMetadata(SettableBlobMeta meta)
setMetadata in class BlobStoreFileCopyright © 2021 The Apache Software Foundation. All rights reserved.