Class GetHDFSFileInfo.HDFSObjectInfoDetails
java.lang.Object
org.apache.hadoop.fs.FileStatus
org.apache.nifi.processors.hadoop.GetHDFSFileInfo.HDFSObjectInfoDetails
- All Implemented Interfaces:
ObjectInputValidation,Serializable,Comparable<Object>,org.apache.hadoop.io.Writable
- Enclosing class:
GetHDFSFileInfo
class GetHDFSFileInfo.HDFSObjectInfoDetails
extends org.apache.hadoop.fs.FileStatus
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.fs.FileStatus
org.apache.hadoop.fs.FileStatus.AttrFlags -
Field Summary
FieldsFields inherited from class org.apache.hadoop.fs.FileStatus
NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate StringBuilderappendProperty(StringBuilder sb, String name, String value) longlonggetError()longvoidvoidsetCountDirs(long countDirs) voidsetCountFiles(long countFiles) voidvoidsetTotalLen(long totalLen) private StringBuildervoidupdateTotals(boolean deepUpdate) Methods inherited from class org.apache.hadoop.fs.FileStatus
attributes, compareTo, compareTo, equals, getAccessTime, getBlockSize, getGroup, getLen, getModificationTime, getOwner, getPath, getPermission, getReplication, getSymlink, hasAcl, hashCode, isDir, isDirectory, isEncrypted, isErasureCoded, isFile, isSnapshotEnabled, isSymlink, readFields, setGroup, setOwner, setPath, setPermission, setSymlink, toString, validateObject, write
-
Field Details
-
countFiles
private long countFiles -
countDirs
private long countDirs -
totalLen
private long totalLen -
children
-
error
-
-
Constructor Details
-
HDFSObjectInfoDetails
HDFSObjectInfoDetails(org.apache.hadoop.fs.FileStatus fs) throws IOException - Throws:
IOException
-
-
Method Details
-
getCountFiles
public long getCountFiles() -
setCountFiles
public void setCountFiles(long countFiles) -
getCountDirs
public long getCountDirs() -
setCountDirs
public void setCountDirs(long countDirs) -
getTotalLen
public long getTotalLen() -
setTotalLen
public void setTotalLen(long totalLen) -
getChildren
-
getError
-
setError
-
setChildren
-
addChild
-
updateTotals
public void updateTotals(boolean deepUpdate) -
toAttributesMap
-
toJsonString
-
toJsonString
-
appendProperty
-