@NotThreadSafe public class UfsFileStatus extends UfsStatus
UnderFileSystem
.Modifier and Type | Field and Description |
---|---|
static String |
INVALID_CONTENT_HASH |
protected String |
mContentHash |
protected long |
mContentLength |
mGroup, mIsDirectory, mLastModifiedTimeMs, mMode, mName, mOwner
Constructor and Description |
---|
UfsFileStatus(String name,
String contentHash,
long contentLength,
long lastModifiedTimeMs,
String owner,
String group,
short mode)
Creates new instance of
UfsFileStatus . |
UfsFileStatus(UfsFileStatus status)
Creates a new instance of
UfsFileStatus as a copy. |
Modifier and Type | Method and Description |
---|---|
UfsFileStatus |
copy()
Create a copy of
UfsStatus . |
String |
getContentHash() |
long |
getContentLength()
Get the content size in bytes.
|
String |
toString() |
convertToNames, equals, getGroup, getLastModifiedTime, getMode, getName, getOwner, hashCode, isDirectory, isFile, setName, toStringHelper
public static final String INVALID_CONTENT_HASH
protected final String mContentHash
protected final long mContentLength
public UfsFileStatus(String name, String contentHash, long contentLength, long lastModifiedTimeMs, String owner, String group, short mode)
UfsFileStatus
.name
- relative path of filecontentHash
- hash of the file contentscontentLength
- in byteslastModifiedTimeMs
- UTC timeowner
- of the filegroup
- of the filemode
- of the filepublic UfsFileStatus(UfsFileStatus status)
UfsFileStatus
as a copy.status
- file information to copypublic UfsFileStatus copy()
UfsStatus
UfsStatus
.public String getContentHash()
public long getContentLength()
Copyright © 2023. All Rights Reserved.