@InterfaceAudience.Public @InterfaceStability.Unstable public final class DirEntry extends Object implements Serializable, Writable
| Constructor and Description |
|---|
DirEntry(Path dir,
int type,
int level)
Construct an entry.
|
DirEntry(String dir,
int type,
int level)
Construct an entry.
|
| Modifier and Type | Method and Description |
|---|---|
static DirEntry |
dirEntry(Path dest,
org.apache.hadoop.mapreduce.lib.output.committer.manifest.files.EntryStatus type,
int level)
A directory entry.
|
static DirEntry |
dirEntry(Path dest,
int type,
int level)
A directory entry.
|
boolean |
equals(Object o) |
Path |
getDestPath() |
String |
getDir() |
int |
getLevel() |
org.apache.hadoop.mapreduce.lib.output.committer.manifest.files.EntryStatus |
getStatus() |
int |
getType() |
int |
hashCode() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
void |
setDir(String dir) |
void |
setLevel(int level) |
void |
setStatus(org.apache.hadoop.mapreduce.lib.output.committer.manifest.files.EntryStatus status) |
void |
setType(int type) |
String |
toString() |
void |
validate() |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public DirEntry(String dir, int type, int level)
dir - destination path.type - type of dest entrylevel - Level in the treewalk.public DirEntry(Path dir, int type, int level)
dir - destination path.type - type of dest entrylevel - Level in the treewalk.public void setDir(String dir)
public String getDir()
public Path getDestPath()
public int getType()
public void setType(int type)
public void setLevel(int level)
public int getLevel()
public org.apache.hadoop.mapreduce.lib.output.committer.manifest.files.EntryStatus getStatus()
public void setStatus(org.apache.hadoop.mapreduce.lib.output.committer.manifest.files.EntryStatus status)
public void validate()
throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
Writableout.write in interface Writableout - DataOuput to serialize this object into.IOException - any other problem for write.public void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.IOException - any other problem for readFields.public static DirEntry dirEntry(Path dest, int type, int level)
dest - destination path.type - typelevel - Level in the treewalk.Copyright © 2024 Apache Software Foundation. All rights reserved.