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,
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(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 |
isTempURI() |
void |
setWriteType(WriteEntity.WriteType type)
Only use this if you are very sure of what you are doing.
|
getD, getDatabase, getFunctionName, getLocation, getName, getP, getParameters, getPartition, getT, getTable, getTyp, getType, hashCode, isComplete, isDummy, isPathType, setComplete, setD, setDatabase, setFunctionName, setName, 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, Entity.Type type, WriteEntity.WriteType writeType)
db
- objName
- 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.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 boolean isTempURI()
public static WriteEntity.WriteType determineAlterTableWriteType(AlterTableDesc.AlterTableTypes op)
op
- Operation type from the alter table descriptionCopyright © 2017 The Apache Software Foundation. All rights reserved.