|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hive.ql.hooks.Entity
public class Entity
This class encapsulates an object that is being read or written to by the query. This object may be a table, partition, dfs directory or a local directory.
| Nested Class Summary | |
|---|---|
static class |
Entity.Type
The type of the entity. |
| Constructor Summary | |
|---|---|
Entity()
Only used by serialization. |
|
Entity(Database database,
boolean complete)
Constructor for a database. |
|
Entity(DummyPartition p,
boolean complete)
|
|
Entity(Partition p,
boolean complete)
Constructor for a partition. |
|
Entity(String d,
boolean islocal,
boolean complete)
|
|
Entity(Table t,
boolean complete)
Constructor for a table. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Equals function. |
String |
getD()
|
Database |
getDatabase()
|
URI |
getLocation()
Get the location of the entity. |
String |
getName()
|
Partition |
getP()
|
Map<String,String> |
getParameters()
Get the parameter map of the Entity. |
Partition |
getPartition()
Get the partition associated with the entity. |
Table |
getT()
|
Table |
getTable()
Get the table associated with the entity. |
Entity.Type |
getTyp()
|
Entity.Type |
getType()
Get the type of the entity. |
int |
hashCode()
Hashcode function. |
boolean |
isComplete()
|
boolean |
isDummy()
|
void |
setComplete(boolean complete)
|
void |
setD(String d)
|
void |
setDatabase(Database database)
|
void |
setName(String name)
|
void |
setP(Partition p)
|
void |
setT(Table t)
|
void |
setTyp(Entity.Type typ)
|
String |
toString()
toString function. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Entity()
public Entity(Database database,
boolean complete)
database - Database that is read or written to.complete - Means the database is target, not for table or partition, etc.
public Entity(Table t,
boolean complete)
t - Table that is read or written to.
public Entity(Partition p,
boolean complete)
p - Partition that is read or written to.
public Entity(DummyPartition p,
boolean complete)
public Entity(String d,
boolean islocal,
boolean complete)
| Method Detail |
|---|
public boolean isComplete()
public void setComplete(boolean complete)
public String getName()
public void setName(String name)
public Database getDatabase()
public void setDatabase(Database database)
public Entity.Type getTyp()
public void setTyp(Entity.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 Map<String,String> getParameters()
public Entity.Type getType()
public URI getLocation()
throws Exception
Exceptionpublic Partition getPartition()
public Table getTable()
public boolean isDummy()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||