public class WriteEntity extends Entity implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
WriteEntity.WriteType |
Entity.Type| Modifier and Type | Method and Description |
|---|---|
static WriteEntity.WriteType |
determineAlterTableWriteType(AlterTableType op,
Table table,
HiveConf conf)
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 |
isDynamicPartitionWrite() |
boolean |
isTempURI() |
boolean |
isTxnAnalyze() |
void |
setDynamicPartitionWrite(boolean t) |
void |
setTxnAnalyze(boolean isTxnAnalyze) |
String |
toDetailedString() |
String |
toStringDetail() |
getClassName, getD, getDatabase, getDataConnector, getFunction, getFunctionName, getLocation, getName, getP, getParameters, getPartition, getServiceName, getT, getTable, getTyp, getType, hashCode, isComplete, isDummy, isPathType, setClassName, setComplete, setD, setDatabase, setDataConnector, setFunctionName, setP, setT, setTyp, toStringpublic WriteEntity()
public WriteEntity(org.apache.hadoop.hive.metastore.api.Database database, WriteEntity.WriteType type)
public WriteEntity(org.apache.hadoop.hive.metastore.api.DataConnector connector, 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(org.apache.hadoop.hive.metastore.api.Function function, WriteEntity.WriteType type)
public WriteEntity(org.apache.hadoop.hive.metastore.api.Database db, String objName, String className, Entity.Type type, WriteEntity.WriteType writeType)
db - objName - className - type - writeType - 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 dirpublic WriteEntity(String name, Entity.Type t)
public WriteEntity.WriteType getWriteType()
public String toStringDetail()
public boolean isTempURI()
public static WriteEntity.WriteType determineAlterTableWriteType(AlterTableType op, Table table, HiveConf conf)
op - Operation type from the alter table descriptionpublic boolean isDynamicPartitionWrite()
public void setDynamicPartitionWrite(boolean t)
public String toDetailedString()
public boolean isTxnAnalyze()
public void setTxnAnalyze(boolean isTxnAnalyze)
Copyright © 2024 The Apache Software Foundation. All rights reserved.