org.apache.hadoop.hive.ql.hooks
Class ReadEntity

java.lang.Object
  extended by org.apache.hadoop.hive.ql.hooks.ReadEntity
All Implemented Interfaces:
Serializable

public class ReadEntity
extends Object
implements Serializable

This class encapsulates the information on the partition and tables that are read by the query.

See Also:
Serialized Form

Nested Class Summary
static class ReadEntity.Type
          Enum that tells what time of a read entity this is.
 
Constructor Summary
ReadEntity()
          For serialization only.
ReadEntity(Partition p)
          Constructor given a partiton.
ReadEntity(Table t)
          Constructor.
 
Method Summary
 boolean equals(Object o)
          Equals function.
 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 partition entity.
 Table getT()
           
 Table getTable()
          Get table entity.
 ReadEntity.Type getType()
          Get the type.
 int hashCode()
          Hashcode function.
 void setName(String name)
           
 void setP(Partition p)
           
 void setT(Table t)
           
 String toString()
          toString function.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadEntity

public ReadEntity()
For serialization only.


ReadEntity

public ReadEntity(Table t)
Constructor.

Parameters:
t - The Table that the query reads from.

ReadEntity

public ReadEntity(Partition p)
Constructor given a partiton.

Parameters:
p - The partition that the query reads from.
Method Detail

getName

public String getName()

setName

public void setName(String name)

setP

public void setP(Partition p)

setT

public void setT(Table t)

getP

public Partition getP()

getT

public Table getT()

getType

public ReadEntity.Type getType()
Get the type.


getParameters

public Map<String,String> getParameters()
Get the parameter map of the Entity.


getLocation

public URI getLocation()
Get the location of the entity.


getPartition

public Partition getPartition()
Get partition entity.


getTable

public Table getTable()
Get table entity.


toString

public String toString()
toString function.

Overrides:
toString in class Object

equals

public boolean equals(Object o)
Equals function.

Overrides:
equals in class Object

hashCode

public int hashCode()
Hashcode function.

Overrides:
hashCode in class Object


Copyright © 2011 The Apache Software Foundation