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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.hooks.ReadEntity

public class ReadEntity
extends Object

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


Nested Class Summary
static class ReadEntity.Type
          Enum that tells what time of a read entity this is.
 
Constructor Summary
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.
 Map<String,String> getParameters()
          Get the parameter map of the Entity.
 Partition getPartition()
          Get partition entity.
 Table getTable()
          Get table entity.
 ReadEntity.Type getType()
          Get the type.
 int hashCode()
          Hashcode function.
 String toString()
          toString function.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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

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 © 2009 The Apache Software Foundation