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 BlobStoreFile
IOException
public boolean isTmp()
isTmp
in class BlobStoreFile
public String getKey()
getKey
in class BlobStoreFile
public long getModTime() throws IOException
getModTime
in class BlobStoreFile
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class BlobStoreFile
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class BlobStoreFile
IOException
public void commit() throws IOException
commit
in class BlobStoreFile
IOException
public void cancel() throws IOException
cancel
in class BlobStoreFile
IOException
public long getFileLength() throws IOException
getFileLength
in class BlobStoreFile
IOException
public SettableBlobMeta getMetadata()
getMetadata
in class BlobStoreFile
public void setMetadata(SettableBlobMeta meta)
setMetadata
in class BlobStoreFile
Copyright © 2022 The Apache Software Foundation. All rights reserved.