|
||||||||||
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(DummyPartition p,
boolean complete)
|
|
Entity(Partition p)
Constructor for a partition. |
|
Entity(Partition p,
boolean complete)
|
|
Entity(String d,
boolean islocal)
Constructor for a file. |
|
Entity(String d,
boolean islocal,
boolean complete)
|
|
Entity(Table t)
Constructor for a table. |
|
Entity(Table t,
boolean complete)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
Equals function. |
String |
getD()
|
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()
|
void |
setComplete(boolean complete)
|
void |
setD(String d)
|
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(Table t)
t
- Table that is read or written to.public Entity(Table t, boolean complete)
public Entity(Partition p)
p
- Partition that is read or written to.public Entity(Partition p, boolean complete)
public Entity(DummyPartition p, boolean complete)
public Entity(String d, boolean islocal)
d
- The name of the directory that is being read or written to.islocal
- Flag to decide whether this directory is local or in dfs.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 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
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 |