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

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

public class ReadEntity
extends Entity
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
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.hooks.Entity
Entity.Type
 
Constructor Summary
ReadEntity()
          For serialization only.
ReadEntity(org.apache.hadoop.hive.metastore.api.Database database)
          Constructor for a database.
ReadEntity(Partition p)
          Constructor given a partition.
ReadEntity(Partition p, ReadEntity parent)
           
ReadEntity(Partition p, ReadEntity parent, boolean isDirect)
           
ReadEntity(org.apache.hadoop.fs.Path d, boolean islocal)
          Constructor for a file.
ReadEntity(Table t)
          Constructor.
ReadEntity(Table t, ReadEntity parent)
           
ReadEntity(Table t, ReadEntity parent, boolean isDirect)
           
 
Method Summary
 boolean equals(Object o)
          Equals function.
 Set<ReadEntity> getParents()
           
 boolean isDirect()
           
 void setDirect(boolean isDirect)
           
 
Methods inherited from class org.apache.hadoop.hive.ql.hooks.Entity
getD, getDatabase, getLocation, getName, getP, getParameters, getPartition, getT, getTable, getTyp, getType, hashCode, isComplete, isDummy, setComplete, setD, setDatabase, setName, setP, setT, setTyp, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadEntity

public ReadEntity()
For serialization only.


ReadEntity

public ReadEntity(org.apache.hadoop.hive.metastore.api.Database database)
Constructor for a database.


ReadEntity

public ReadEntity(Table t)
Constructor.

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

ReadEntity

public ReadEntity(Table t,
                  ReadEntity parent)

ReadEntity

public ReadEntity(Table t,
                  ReadEntity parent,
                  boolean isDirect)

ReadEntity

public ReadEntity(Partition p)
Constructor given a partition.

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

ReadEntity

public ReadEntity(Partition p,
                  ReadEntity parent)

ReadEntity

public ReadEntity(Partition p,
                  ReadEntity parent,
                  boolean isDirect)

ReadEntity

public ReadEntity(org.apache.hadoop.fs.Path d,
                  boolean islocal)
Constructor for a file.

Parameters:
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

getParents

public Set<ReadEntity> getParents()

equals

public boolean equals(Object o)
Equals function.

Overrides:
equals in class Entity

isDirect

public boolean isDirect()

setDirect

public void setDirect(boolean isDirect)


Copyright © 2014 The Apache Software Foundation. All rights reserved.