@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
IOException
public void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
- any other problem for write.public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- 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 © 2023 Apache Software Foundation. All rights reserved.