public class WriteEntity extends Entity implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
WriteEntity.WriteType |
Entity.Type
Constructor and Description |
---|
WriteEntity()
Only used by serialization.
|
WriteEntity(Database db,
String objName,
String className,
Entity.Type type,
WriteEntity.WriteType writeType)
Constructor for objects represented as String.
|
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(String name,
Entity.Type t) |
WriteEntity(Table t,
WriteEntity.WriteType type)
Constructor for a table.
|
WriteEntity(Table t,
WriteEntity.WriteType type,
boolean complete) |
Modifier and Type | Method and Description |
---|---|
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 |
isDynamicPartitionWrite() |
boolean |
isTempURI() |
void |
setDynamicPartitionWrite(boolean t) |
void |
setWriteType(WriteEntity.WriteType type)
Only use this if you are very sure of what you are doing.
|
String |
toDetailedString() |
String |
toStringDetail() |
getClassName, getD, getDatabase, getFunctionName, getLocation, getName, getP, getParameters, getPartition, getServiceName, getT, getTable, getTyp, getType, hashCode, isComplete, isDummy, isPathType, setClassName, setComplete, setD, setDatabase, setFunctionName, setP, setT, setTyp, toString
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(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 void setWriteType(WriteEntity.WriteType type)
UpdateDeleteSemanticAnalyzer
to reset the types to
update or delete after rewriting and reparsing the queries.type
- new operation typepublic String toStringDetail()
public boolean isTempURI()
public static WriteEntity.WriteType determineAlterTableWriteType(AlterTableDesc.AlterTableTypes op)
op
- Operation type from the alter table descriptionpublic boolean isDynamicPartitionWrite()
public void setDynamicPartitionWrite(boolean t)
public String toDetailedString()
Copyright © 2022 The Apache Software Foundation. All rights reserved.