|
||||||||||
| 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
org.apache.hadoop.hive.ql.hooks.WriteEntity
public class WriteEntity
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.
| Nested Class Summary | |
|---|---|
static class |
WriteEntity.WriteType
|
| Nested classes/interfaces inherited from class org.apache.hadoop.hive.ql.hooks.Entity |
|---|
Entity.Type |
| Constructor Summary | |
|---|---|
WriteEntity()
Only used by serialization. |
|
WriteEntity(Database database,
WriteEntity.WriteType type)
|
|
WriteEntity(DummyPartition p,
WriteEntity.WriteType type,
boolean complete)
|
|
WriteEntity(Partition p,
WriteEntity.WriteType type)
Constructor for a partition. |
|
WriteEntity(org.apache.hadoop.fs.Path d,
boolean islocal)
Constructor for a file. |
|
WriteEntity(org.apache.hadoop.fs.Path d,
boolean islocal,
boolean isTemp)
Constructor for a file. |
|
WriteEntity(Table t,
WriteEntity.WriteType type)
Constructor for a table. |
|
WriteEntity(Table t,
WriteEntity.WriteType type,
boolean complete)
|
|
| Method Summary | |
|---|---|
static WriteEntity.WriteType |
determineAlterTableWriteType(AlterTableDesc.AlterTableTypes op)
Determine the type of lock to request for a given alter table type. |
boolean |
equals(Object o)
Equals function. |
WriteEntity.WriteType |
getWriteType()
Determine which type of write this is. |
boolean |
isTempURI()
|
| 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 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WriteEntity()
public WriteEntity(Database database,
WriteEntity.WriteType type)
public WriteEntity(Table t,
WriteEntity.WriteType type)
t - Table that is written to.
public WriteEntity(Table t,
WriteEntity.WriteType type,
boolean complete)
public WriteEntity(Partition p,
WriteEntity.WriteType type)
p - Partition that is written to.
public WriteEntity(DummyPartition p,
WriteEntity.WriteType type,
boolean complete)
public WriteEntity(org.apache.hadoop.fs.Path d,
boolean islocal)
d - The name of the directory that is being written to.islocal - Flag to decide whether this directory is local or in dfs.
public WriteEntity(org.apache.hadoop.fs.Path d,
boolean islocal,
boolean isTemp)
d - The name of the directory that is being written to.islocal - Flag to decide whether this directory is local or in dfs.isTemp - True if this is a temporary location such as scratch dir| Method Detail |
|---|
public WriteEntity.WriteType getWriteType()
public boolean equals(Object o)
equals in class Entitypublic boolean isTempURI()
public static WriteEntity.WriteType determineAlterTableWriteType(AlterTableDesc.AlterTableTypes op)
op - Operation type from the alter table description
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||