|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.ql.hooks.WriteEntity
public class WriteEntity
This class encapsulates an object that is being written to by the query. This object may be a table, partition, dfs directory or a local directory.
Nested Class Summary | |
---|---|
static class |
WriteEntity.Type
The type of the write entity. |
Constructor Summary | |
---|---|
WriteEntity()
Only used by serialization. |
|
WriteEntity(Partition p)
Constructor for a partition. |
|
WriteEntity(String d,
boolean islocal)
Constructor for a file. |
|
WriteEntity(Table t)
Constructor for a table. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Equals function. |
String |
getD()
|
URI |
getLocation()
Get the location of the entity. |
String |
getName()
|
Partition |
getP()
|
Partition |
getPartition()
Get the partition associated with the entity. |
Table |
getT()
|
Table |
getTable()
Get the table associated with the entity. |
WriteEntity.Type |
getTyp()
|
WriteEntity.Type |
getType()
Get the type of the entity. |
int |
hashCode()
Hashcode function. |
void |
setD(String d)
|
void |
setName(String name)
|
void |
setP(Partition p)
|
void |
setT(Table t)
|
void |
setTyp(WriteEntity.Type typ)
|
String |
toString()
toString function. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WriteEntity()
public WriteEntity(Table t)
t
- Table that is written to.public WriteEntity(Partition p)
p
- Partition that is written to.public WriteEntity(String d, boolean islocal)
d
- The name of the directory that is being written to.islocal
- Flag to decide whether this directory is local or in dfs.Method Detail |
---|
public String getName()
public void setName(String name)
public WriteEntity.Type getTyp()
public void setTyp(WriteEntity.Type typ)
public Table getT()
public void setT(Table t)
public Partition getP()
public void setP(Partition p)
public String getD()
public void setD(String d)
public WriteEntity.Type getType()
public URI getLocation() throws Exception
Exception
public Partition getPartition()
public Table getTable()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |