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

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

public class WriteEntity
extends Entity
implements Serializable

This class encapsulates an object that is being written to by the query. This object may be a table, partition, dfs directory or a local directory.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.hooks.Entity
Entity.Type
 
Constructor Summary
WriteEntity()
          Only used by serialization.
WriteEntity(DummyPartition p, boolean complete)
           
WriteEntity(Partition p)
          Constructor for a partition.
WriteEntity(Partition p, boolean complete)
           
WriteEntity(String d, boolean islocal)
          Constructor for a file.
WriteEntity(String d, boolean islocal, boolean complete)
           
WriteEntity(Table t)
          Constructor for a table.
WriteEntity(Table t, boolean complete)
           
 
Method Summary
 boolean equals(Object o)
          Equals function.
 
Methods inherited from class org.apache.hadoop.hive.ql.hooks.Entity
getD, getLocation, getName, getP, getParameters, getPartition, getT, getTable, getTyp, getType, hashCode, isComplete, setComplete, setD, setName, setP, setT, setTyp, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WriteEntity

public WriteEntity()
Only used by serialization.


WriteEntity

public WriteEntity(Table t)
Constructor for a table.

Parameters:
t - Table that is written to.

WriteEntity

public WriteEntity(Table t,
                   boolean complete)

WriteEntity

public WriteEntity(Partition p)
Constructor for a partition.

Parameters:
p - Partition that is written to.

WriteEntity

public WriteEntity(Partition p,
                   boolean complete)

WriteEntity

public WriteEntity(DummyPartition p,
                   boolean complete)

WriteEntity

public WriteEntity(String 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.

WriteEntity

public WriteEntity(String d,
                   boolean islocal,
                   boolean complete)
Method Detail

equals

public boolean equals(Object o)
Equals function.

Overrides:
equals in class Entity


Copyright © 2013 The Apache Software Foundation